I am currently using CursorAdapter with Loader . The data downloaded by Loader contains the location. I want to order my goods from the nearest to the farthest. I am already calculating the distance to display it, now I need to find a way to dynamically sort the data.
I could probably change the CursorLoader every time the data is changed, but repeating the same SQL query again and again, just to reorder, seems somehow redundant to me ...
Is there a way to dynamically sort data in a CursorAdapter ?
android sorting android-location android-listview android-cursoradapter
Marc plano-lesay
source share