lex_order Convert numeric types into binary-comparable representations for lexicographic sorting and trie storage