my dog learned polymorphism
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 1Z0-808 this week in the OCAJP 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: 3611

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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Regarding sorting