Ack, yes. You can't sort like that, annoyingly. How do things look if you do a sorted sub-query before aggregating?