mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-01 06:19:57 +01:00
sort games by whose turn it is, local at top
This commit is contained in:
parent
b64bf82278
commit
4b25d17dbf
1 changed files with 2 additions and 1 deletions
|
@ -1630,7 +1630,8 @@ public class DBUtils {
|
||||||
initDB( context );
|
initDB( context );
|
||||||
String[] columns = { ROW_ID };
|
String[] columns = { ROW_ID };
|
||||||
String selection = String.format( "%s=%d", DBHelper.GROUPID, groupID );
|
String selection = String.format( "%s=%d", DBHelper.GROUPID, groupID );
|
||||||
String orderBy = DBHelper.CREATE_TIME + " DESC";
|
String orderBy = String.format( "%s,%s DESC,%s", DBHelper.GAME_OVER,
|
||||||
|
DBHelper.TURN_LOCAL, DBHelper.LASTMOVE );
|
||||||
synchronized( s_dbHelper ) {
|
synchronized( s_dbHelper ) {
|
||||||
SQLiteDatabase db = s_dbHelper.getReadableDatabase();
|
SQLiteDatabase db = s_dbHelper.getReadableDatabase();
|
||||||
Cursor cursor = db.query( DBHelper.TABLE_NAME_SUM, columns,
|
Cursor cursor = db.query( DBHelper.TABLE_NAME_SUM, columns,
|
||||||
|
|
Loading…
Reference in a new issue