From: David Balmain Date: 2006-07-19T10:57:59+09:00 Subject: Integer encoding challenge Hey all, I need to come up with a way to encode an integer as a string so that it will sort correctly lexicographically. This is pretty easy when you have a fixed integer range but how do you do it with Ruby's BigNums? Any ideas? Cheers, Dave