How to sort the CursorLoader results?
问题 I use CursorLoader to query a result, which is not the order that I want to show in the ListFramgenet. How to sort it ? I use this to set the adapter: mAdapter = new SimpleCursorAdapter(getActivity(), android.R.layout.simple_list_item_2, null, new String[] { "name", "distance"}, new int[] { android.R.id.text1, android.R.id.text2 }, 0); setListAdapter(mAdapter); // Start out with a progress indicator. setListShown(false); // Prepare the loader. Either re-connect with an existing one, // or