Fix ordering by priority desc