Priority Sorting Done