Sort by priority