Collection sort by priority