Priority sorting.