File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Oracle/OAS and the fly likes Regarding sorting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Regarding sorting" Watch "Regarding sorting" New topic

Regarding sorting

santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 146

How to sort column which have some special characters like $#%## but i am getting wrong results, Could you please tell me how to short.

Santhosh Kumar V.K
Martin Vajsar

Joined: Aug 22, 2010
Posts: 3674

What have you tried? What does "wrong result" mean?

There are various lexicographic rules, and their ordering of these special characters might differ. Oracle has a session parameter called NLS_SORT which determines the lexicographic rules used for sorting and affects all queries in the session. Then there is a NLSSORT function that can be used to override the session-wide setting for a single query.
I agree. Here's the link:
subject: Regarding sorting