4 ms·
Unless you are doing hardcore systems programming, there is almost never a reason to write your own sort.
by foonamefoo 19y ago
Unless you are doing hardcore systems programming, there is almost never a reason to write your own sort.
- cperciva 19y agoWhere's the C library function for "sort the N-byte records in the file named 'foo' which is too large to fit into RAM"?
- bayareaguy 19y agoPerhaps not in libc but on my freebsd box /usr/src/gnu/usr.bin/sort/sort.c delivers the goods if foo has newlines.
- foonamefoo 19y agosystem('sort filename');
- edw519 19y ago"almost never a reason to write your own sort" What about being drunk on New Year's Eve?
- ovi256 19y agoThat's... uh; that's hardly a reason for anything. Except hooking up with that hot little secretary you had a crush on forever.