Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sorting not working for java.sql.Date field

user8696578Feb 19 2014 — edited Feb 28 2014

Hi ADF Experts,

JDev version 11.1.1.7.0

I am using a POJO based datacontrol, which is dragged as a table in JSFF page. One of the field has a data type as java.sql.Date in POJO.

So for example in the table 4 values are there for that date field like

2.2.2014

3.2.2014

31.1.2014

31.12.2013

So while sorting in ascending it should come like below

31.12.2013

31.1.2014

2.2.2014

3.2.2014

And descending viceversa,.

But if I click sorting it sorts by first 2 digits only and I get below results during sorting(ascending)

2.2.2014

3.2.2014

31.1.2014

31.12.2013

Please suggest on this. Thanks in advance.

Thanks,

Animesh

This post has been answered by user8696578 on Feb 28 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2014
Added on Feb 19 2014
3 comments
381 views