sort by creation time rather than name

This commit is contained in:
Andy2 2011-05-20 22:55:07 -07:00
parent c9be5b464c
commit 3b78bab89d

View file

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