Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Sorting Dates #7

Closed
criedel opened this Issue Jan 11, 2012 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

criedel commented Jan 11, 2012

Hi,

I'm having trouble sorting my collection by date. It seems to work only ascending but not descending. Watch my commit, I added a test that verifies the bug.

Cheers
Christian

@criedel criedel added a commit to CupSoftware/mongo-jackson-mapper that referenced this issue Jan 11, 2012

@criedel criedel #7 sorting dates descending isn't working right 4f7dbfd
Contributor

criedel commented Jan 12, 2012

oh, sorry for the noise. it seems it's mongodb that doesn't support this kind of sorting:
http://stackoverflow.com/questions/4456082/granularity-in-a-mongodb-date-sort

@criedel criedel closed this Jan 12, 2012

@criedel criedel added a commit to CupSoftware/mongo-jackson-mapper that referenced this issue Jan 19, 2012

@criedel criedel Revert "#7 sorting dates descending isn't working right"
This reverts commit 4f7dbfd.
78fd0bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment