Imagine I\'ve a table \'users\' with two fields: \'age\' and \'name\'. I want to retrieve the top ten older users and then I want this list of ten sorted by name.
Is it
Use a subselect:
SELECT * FROM ( SELECT * FROM users ORDER BY age DESC LIMIT 10 ) AS T1 ORDER BY name
The inner select finds the 10 rows you want to return, and the outer select puts them in the correct order.