scisort - sort lines by numbers in scientific notation
scisort doesn't do much more than UNIX sort -g, only a little faster.
Download
scisort.cpp (20050711)
Compile
g++ -O2 -o scisort scisort.cpp
Usage
scisort [-k <key>] [-s] [-r]
scisort reads from stdin and writes to stdout.
Use -r for reverse sort and
-k <key> for sorting by column <key> (first column is 1).
Relative order of elements that compare equal is preserved when using -s (stable sort).
License
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
See http://www.gnu.org/copyleft/gpl.html
History
2005-07-11: Bug fix: non-existing key could lead to a crash; Using vector again (with push_back() instead of insert())
2005-07-09: First column, key = 1 (just like sort)
2005-07-08: Using deque instead of vector; Using C strings for performance improvements
2005-07-07: First "release"
Bugs/Contact
Please report bugs to: freek -at- vanwal -dot- nl.