cursor = mRecordDB.query(POPDatabase.RECORD_TABLE, new String[]
{ POPDatabase.RECORD_ID,
POPDatabase.RECORD_DATE,
POPDatabase.RECORD_DETAILS,
POPDatabase.RECORD_DEBIT,
POPDatabase.RECORD_CREDIT,
POPDatabase.RECORD_COMPANY
}, null, null,null, null, POPDatabase.RECORD_DATE + " ASC ");
此查询显示:
01-09-2013
02-09-2013
03-08-2013
04-08-2013
05-09-2013
但我想像这样按月份排序:
03-08-2013
04-08-2013
01-09-2013
02-09-2013
05-09-2013