When sorting NUL terminated lines, the needed -z option wasn't being passed to sort(1), causing errors due to improperly sorted data. Fixed, plus raises an error if the system sort(1) doesn't support -z.
(Seeing if this one actually makes it to the mailing list)