As shown in below image I am trying to Query entries based on Priority first and then among same priority by distance.
For Example below entries Product2 and Product3 are Priority 1 and Product is Priority 2. So fist order by Priority and then after that out of Product2 and Product3 I would like order by distance.
Final result should look like Product 3 then Product 2 and then Product 1.
Any feedback on what SQL Query should I use.