mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
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:
parent
0f764664d4
commit
061eb9c405
1 changed files with 2 additions and 1 deletions
|
@ -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 ( ; ; ) {
|
||||||
|
|
Loading…
Reference in a new issue