in reply to Need Help! Two Dimentional Array Sorting
In the *nix world...
cat file.txt | sort -k1
Or in winders-land...
type file.txt | sort /+1
Note that because you want to sort by the first "field", you don't even need to specify the sort field, as both winders and *nix sort do that by default. So just piping the file through sort is sufficient.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need Help! Two Dimentional Array Sorting
by graff (Chancellor) on Jan 03, 2008 at 05:10 UTC | |
by johngg (Canon) on Jan 03, 2008 at 11:29 UTC |