Sort within a sort - ElasticSearch (DSL / DRF)

Context:

Imagine having 10 records, 5 of which are featured. - You want to firstly bring the featured to the top of the list (not sure if it's the best way but done easily via .sort('-featured')) , then you want to sort the featured by name, whilst not affecting the other 5 records.

I've been trying to look at nested sorting, script sort among other topics; but can't seem to find anything that documents how to do this - I guess that's because it's simple and should use query and sort in some way?

Thank you for reading. (:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.