Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
kranthi4one
Posts: 31
Registered: ‎10-03-2011
My Device: 9900

How to get list sorted by modified date

hi,

 

 

Is there a way (method or class) to get list that sorted by  date ?

 

Can suggest me  please

 

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to get list sorted by modified date

I usually use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/util/SimpleSortingVector.html
you implement your owm comparator, so it is very flexible.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
kranthi4one
Posts: 31
Registered: ‎10-03-2011
My Device: 9900

How to get list sorted by modified date

sir,

 

please give me example

 

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to get list sorted by modified date

there are examples in the API
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter