Fixed a bug in which the 'highest priority' sort order would sort in the incorrect direction.