get Feature item to list View

while fetching the data from database give the respective column as order by desc.

for example

sql = "SELECT * FROM "+Database.tblname+" WHERE  ORDER BY "+Database.clcolumnid+"  ASC"; 
SQLiteDatabase sqlite = dbObject.getWritableDatabase();
    Cursor cursor = sqlite.rawQuery(sql, null);

Leave a Comment