changed sortByPriority to Public