fixed ranking to use numeric sort, not alphabetical