Very small fix with list of priority names
Add sorting by priority