title: How to show list of records with order which displays nearby latitude and longitude data first in list
body: <p>I am trying to order records of list to show nearby some latitude and longitude first and then display another remaining data in list, but can't achieve this because I have not much knowledge of order by query. If anyone can help it will be grateful to me. Thanks in advance.</p>
  <p>I have one customer class on which I am trying to add order query like this:
  customer = Customer.all
  customer.where(state: &quot;New york&quot;).order('within_radius(41.73061, 72.935242, 20000)' is first)</p>
  <p>I want to show all records of newyork state but want to display near by results first in list. How can I do this. Can anyone guide me</p>