I currently use a CursorAdapter
with a Loader
. The data loaded by the Loader
contains a location. I want to order my items from the nearest to the farthest. I already compute the distance to display it, I now need to find a way to dynamicaly sort the data.
I could probably modify the CursorLoader
sort everytime my data change, but doing the same SQL query again and again just to change the order looks somehow overkill to me…
Is there any way to dynamically sort data in a CursorAdapter
?