Rank cards in descending score when loading from db.

Test: robotest
Change-Id: Ic40f6ed9e702a60f51d4ec6700e663f1689f0009
This commit is contained in:
Fan Zhang
2018-11-08 15:13:37 -08:00
parent 08d8ed80b6
commit 6735a3f07e
2 changed files with 40 additions and 1 deletions

View File

@@ -201,7 +201,7 @@ public class CardDatabaseHelper extends SQLiteOpenHelper {
final String selection = CardColumns.CARD_DISMISSED + "=0";
Cursor cursor = db.query(CARD_TABLE, null /* columns */, selection,
null /* selectionArgs */, null /* groupBy */, null /* having */,
null /* orderBy */);
CardColumns.SCORE + " DESC" /* orderBy */);
return cursor;
}