Rank apps by rank value as opposed to version number
Remove unnecessary nil checks
If ranks are equal set app with higher version to top
Merge pull request #7 from Dasmer/daz/add_rank

Rank Apps by Rank Value as opposed to Version Number