Better priorities/preferences sorter