Rank cards in descending score when loading from db.
Test: robotest Change-Id: Ic40f6ed9e702a60f51d4ec6700e663f1689f0009
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user