Add sorting to the list and ps commands.