I have the following code and would like to make an ORDER BY name:
try {
String clsSimPhonename = null;
String clsSimphoneNo = null;
Uri simUri = Uri.parse("content://icc/adn");
Cursor cursorSim = getContentResolver().query(simUri, null,
null, null, "name ASC");
while (cursorSim.moveToNext()) {
clsSimPhonename = cursorSim.getString(cursorSim
.getColumnIndex("name"));
clsSimphoneNo = cursorSim.getString(cursorSim
.getColumnIndex("number"));
}
} catch (Exception e) {
e.printStackTrace();
}