Page 1 of 1

How to implement user sort ?

Posted: Mon Apr 26, 2010 5:10 am
by passtosekar
Hi,
My input records are as like below,
South,
North,
West,
East.

I need below mentioned output in a sequential file.

West,
North,
East,
South.

Please help me to achive this.

Regards,
Sekar.

Re: How to implement user sort ?

Posted: Mon Apr 26, 2010 6:27 am
by mystuff
Weigh each field with a rank and then sort based on the rank given to that field.