Custom sorting by distance base on position properties


#1

Hi all, I have models with Lat/Long properties and I would like to sort them by distance based on my current location (which I get through html5 geolocation request). Can I do the sorting using emberjs? what strategy should I use? If yes please help, I coudln’t figure it out.


#2

sorry should have asked that on stackoverflow, my bad. You can answer me here: http://stackoverflow.com/questions/18046918/custom-sorting-models-by-distance-based-on-location-properties-with-ember-js