I would like to return a list of distinct values sorted by a property other than the returned property.
For example, to return a distinct list of the 10 users that have most recently updated documents. The following DQL describes what I am looking for - however it is not valid because the ORDER BY items must appear in the SELECT list when SELECT DISTINCT is used:
SELECT DISTINCT r_modifier FROM dm_document ORDER BY r_modify_date DESC ENABLE(RETURN_TOP 10)