Hi
To perform sorting at the Application level you can use Comparators.
http://www.javadeveloper.co.in/java-example/java-comparator-example.html
For database, are u using hibernate or pure jdbc as the implemntations may vary
with the approach though the underlying query will use the order by clause.
S. Baqar Naqvi.
> Date: Sun, 14 Dec 2008 22:22:29 -0800> Subject: [java ee programming] Sorting
> technique> From: naveenkumarnl1...@gmail.com> To:
> java-ee-j2ee-programming-with-passion@googlegroups.com> > > hi team,> > i
> need to know about the best sorting technique used in java.> > Statement:>
> There will be a sort link that is visible for the client. When he> clicks
> it(say sort on Name) it should sort on name.Suppose he has> around 1000
> records, the sorting technique should be efficient so that> it should not
> take much time on sorting.> > One more thing i heard is sorting at database
> end, is it a good idea,> give how do i proceed with this if it is a good
> idea.> > Thanks in advance> Naveen> >
> _________________________________________________________________
Send e-mail faster without improving your typing skills.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---