No, put the order in the outer query:
SELECT name FROM (SELECT name, age FROM people WHERE age >= 18) p ORDER BY p.age DESC LIMIT 10
The internal (auxiliary) query returns the result. If you place an order there, then the intermediate result set transferred from the internal (auxiliary) request to the external request will be guaranteed to be ordered as you designated it, but without order in the external request, the result is the set created by processing this internal set of query results is not guaranteed to be sorted in any way.
source share