Sort output in mode "list"