these are two records(adr.txt)trying to sort with the the code expl below.
5423|336110|2730 Pierce St|Ste 300|Sioux City|IA|Woodbury|51104|3765||42518651|96405013|A|2|3|U|12/08/2009
5423|14462335|624 JONES ST|STE 5400|Sioux City|IA|Woodbury|51101|||42496648|96400644|A|8|2|U |12/24/2009
The result is reverse as i expect the bottome one to come top...
...The issue here is ("THE LAST BUT ONE FIELD IS NOT CONSISTENT AS IT HAS A SPACE AFTER "U" IN ONE ROW AND NOT IN OTHER ROW")... Either with or without spaces in two rows the above sort works fine
I just want to ignore the space in that filed while sorting...Any ideas please?
Thanks
Like you said , the 17th filed is being sorted with the way you suggested 17.1 which works fine...
I just want to take no chance with other fileds too with the space issue like in 17th.
for example, in 16th filed the value can be anywhere between 1 to 99. I want to consider only values , I mean just one value in case of single digit and 2 values in case of double digit. I dont find any DOC on this...
please suggest me if you have any ideas...hope I am clear