Hi,

I have a file that appears to be somewhat sorted, but is not sorted according to the traditional unix sort. I'll give some examples, and if anyone recgonizes the way in which the file is sorted, please let me know. Also, since I may have to write a comparator function for use on this "sorted" file, any tips on doing that in the most efficient way possible would be helpful. Thanks.

Examples. I give some sets of strings to indicate which comes before the other in the "sorted" file. The first one in each pair is less than the second. Each set is independent of the others. set x doesnt necessarily come before set y in the file if x < y.

Set 1:
0-CELEBRITY-0
0-CELEBRITY

Set 2:
0-0-7
0-0

Set 3:
000-AAA
000

Set 4:
000
0000

Set 5:
0908
09088122595
09088122595
0909-114




-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to