Sorting output of listing commands.