sort apps by version, so newest is chosen if it passes constraints
Merge pull request #207 from tsloughter/app_sort

sort apps by version, so newest is chosen if it passes constraints