
Custom Search
I have a doubt in SORTING records.
Is it possible to customize sort?
Neither ascending nor descending order, Its has to be in a customized or a given order .
for Ex:
field A has values 04,05,07,09,20,25 and 30
And SORTED o/p must be in the below order for field A.
04 05 09 20 07
25 and 30
"; ; ; ;
thanks in advance...
Click the +1 button below to share it with your friends and colleagues
Who's onlineThere are currently 0 users and 13 guests online.
|
Append a "sort field" at the end of each input record that contains a value that when sorted will force the data into the order you want (i.e. 04 = 01, 05=02, 09=03, 20=04, 07=05 etc). Sort by this appended data and strip it off when writing the output form the sort.