Sort alerts by the alarm date

master
bspeice 2013-12-08 19:49:58 -05:00
parent bc5bbf8189
commit c77e8553fe
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ public class AlertDB extends SQLiteOpenHelper {
List<Alert> alertList = new ArrayList<Alert>();
String selectQuery = "SELECT * FROM " + TABLE_ALERTS;
String selectQuery = "SELECT * FROM " + TABLE_ALERTS + " ORDER BY " + KEY_ALARM_DATE + " DESC;";
SQLiteDatabase db = this.getWritableDatabase();
Cursor cursor = db.rawQuery(selectQuery, null);