return list of games ordered by mod time so they display in that

order, with newest (most recently modified) at top.  This won't really
make sense until modtime is added to the display.
This commit is contained in:
Andy2 2011-02-10 06:13:07 -08:00
parent 0f764664d4
commit 061eb9c405

View file

@ -444,8 +444,9 @@ public class DBUtils {
SQLiteDatabase db = s_dbHelper.getReadableDatabase(); SQLiteDatabase db = s_dbHelper.getReadableDatabase();
String[] columns = { DBHelper.FILE_NAME }; String[] columns = { DBHelper.FILE_NAME };
String orderBy = DBHelper.LASTPLAY_TIME + " DESC";
Cursor cursor = db.query( DBHelper.TABLE_NAME_SUM, columns, Cursor cursor = db.query( DBHelper.TABLE_NAME_SUM, columns,
null, null, null, null, null ); null, null, null, null, orderBy );
if ( 0 < cursor.getCount() ) { if ( 0 < cursor.getCount() ) {
cursor.moveToFirst(); cursor.moveToFirst();
for ( ; ; ) { for ( ; ; ) {