关于android sqlite的date类型排序问题
我有一个数据库表:tell
create table tell (
_id integer primary key autoincrement,
testDate date
);
表数据:
_id testDate
1 '2012-3-4'
2 '2012-3-5'
3 '2012-3-15'
4 '2012-4-9'
5 '2012-11-3'
查询语句:
select testDate from tell order by testDate desc
结果:
2012-4-9
2012-3-5
2012-3-4
2012-3-15
2012-11-3
结果和数据的排序相差甚远!!
求帮忙解释
如何才能得到正确的排序。
非常感谢!在线等