sort: allow SI and IEC units on separate human sort fields
authorPádraig Brady <P@draigBrady.com>
Mon, 29 Jun 2009 23:52:43 +0000 (00:52 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 3 Jul 2009 16:00:55 +0000 (17:00 +0100)
commitacc01947af2e025d11016f3a4b0a26beb06dd120
tree278d23fc40bed474e0ca30315a628e9fcf7629a7
parentd9f83f9a603a2f5ecdc13bbe65e22aba49d43d66
sort: allow SI and IEC units on separate human sort fields

* src/sort.c: Store the si_present state per key rather than globally
* tests/misc/sort: Add a check that would have previously failed.
Also add a test to demonstrate that invalid IEC/SI mixtures are not
always noticed when they're not significant to the sort.
src/sort.c
tests/misc/sort