use same sort function as on PAUSE