Thanks for the patch Bibin A Chundatt. Some minor fixes required -
This change is not required.
Rename priorityComparator to AppPriorityComparator
Also, it looks like the patch hasn't gone through Jenkins - can you please submit the patch for Jenkins once you make the changes?