in reply to Re^4: Emulating 'sort' command through a Perl
in thread Emulating 'sort' command through a Perl
Yes I know the column here is 3rd. Let me explain the bug taking an example.
Suppose if any 2 row values of 3rd column are same (like in this case ie0hZF)
In that case it should sort by first column values of those 2 rows.
Now what if those 2 values are also same as. (like in this case - 4ewejk)
Then it will try to compare by respective 2nd column values and what if one of the value start with a digit (like in this case 4sqprx) and other with alphabet (like in this case pFnjd4) then number should come first bcoz its ascii value is less.
Which is not happening here...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Emulating 'sort' command through a Perl
by Marshall (Canon) on Oct 30, 2009 at 20:11 UTC |