| Author |
Usage of Collection classes sorting mechanism in a project
|
Ravi Kiran Va
Ranch Hand
Joined: Apr 18, 2009
Posts: 2234
|
|
Hi
I am having a query againist the usage of a Comparator or Comparable or Collection classes sort Mechanism in util package .
Can any body please tell me where actually this concept will be used in a project.
(What i think is that as the data from database will be returned by applying order by know )
Thank you .
|
Save India From Corruption - Anna Hazare.
|
 |
salvin francis
Ranch Hand
Joined: Jan 12, 2009
Posts: 915
|
|
great example:
http://www.javadeveloper.co.in/java-example/java-comparator-example.html
if your data is coming from a database, i would prefer to do the sorting in the query itself rather than code unless
it involves user sorting a subset of data shown in UI, at that point i would use it in code.
|
My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
|
 |
 |
|
|
subject: Usage of Collection classes sorting mechanism in a project
|
|
|