Functions
compareByPriority
compareTest