This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 149

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: 3719

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
It's not a secret anymore!