Sort nulls and empty strings after columns with content.

Fixed up some inaccurate comments.
Don't terminate split too early. We could have left a \x1f at the end.