-2

I have a table with 3 columns.(Id-Primary Key, Task-string, due date-string). i want to insert task and set due date. Then, i want to display them in list view.Before i display them in list view, i want this table sorted based on date from most recent to least.

xsxv036
  • 1
  • 1

1 Answers1

0
Cursor cursor = db.query(DATABASEHelper.DATABASE_TABLE,
result_columns, where,
whereArgs, groupBy, having, order);

so argument order will be "COLUMN_NAME ASC"

Gurwinder Singh
  • 38,557
  • 6
  • 51
  • 76
Elsunhoty
  • 1,609
  • 14
  • 27