This is how I solved the problem. I added another string to the store called 'dist'. Even though the server would never send that information, I created it just to store the information. I then used google API to calculate the distance (there are plenty of examples online. Just make sure you use the latest API). After google returned the distance I added it to the store.Using something like this...
var record= Location.stores.PropertiesRaw.getAt(j);
Then I added a this code to sort the store by distance...
property : 'dist',
The list box will automatically refresh itself to show the list by distance. You can turn off the 'auto load' of the store so you can have greater control of when the list shows the results.
Thanks for the snippet!
I've tried to solve the problem with a quite similar approach, but i didn't get it working.
Sencha is kinda cool but a bit hard to understand... until now i developed my mobile apps with jQuery mobile, which is quite different
And then i've got a function addMarker(data) which is used to get the calculated distance from my current position. The calculation is working and i get the distance from google. But i don't exactly know how to get this working.
Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."