use same sort function as on PAUSE
Merge pull request #1 from eserte/master

use same sort function as on PAUSE