> I have a bunch of IP numbers stored in a VarChar field in SQL7. When I
> sort them, it sorts like text, as it should, with not great results. Is
> there a quick and easy way to get the IP numbers to sort like a number?

Pad out each octet with 0's. 206.168.47.6 => 206.168.047.006.  Create
another field in the table used just for sorting if you don't want to modify
the original field.  These should sort correctly.

Jim

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to