I am sorting with Oracle version 12 with the following NLS parameters
- NLS_LANGUAGE AMERICAN
- NLS_SORT BINARY
- NLS_COMP BINARY
Eg. " 1Andy"," Andy","Andy","andy","Aaron","Bob"
SELECT name from employee order by name
result: " 1Andy"," Andy","Aaron","Andy","Bob","andy"
if I change the NLS_SORT to WEST_EUROPEAN, it is suppose to be " 1Andy"," Andy","Aaron","Andy","andy","Bob" but the result is " 1Andy"," Andy","andy","Aaron","Andy","Bob" where andy even though is lower case goes in the middle.
SELECT name from employee order by NLSSORT(name ,'NLS_SORT=WEST_EUROPEAN')