Sometimes it's useful to re-use the data from a DB query (in a different order) without re-executing the query, so it would be handy to sort it locally.
That's not demonstrated in this example, but I've done this before.
Comment on Re^2: sorting a database table with primary keys