some cleanup in datafmt

clarify docs for the is_valid_* functions
add isless(::Char, ::Char) method (required for sort), add test
clarification