mirror of
				https://github.com/bspeice/UNCCGameDay
				synced 2025-11-04 02:10:35 -05:00 
			
		
		
		
	Sort alerts by the alarm date
This commit is contained in:
		@ -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);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user