Sorting ps output