I thought I knew how to run sort to get a plain ASCII sort, but apparently I don't. I have a file full of random IP addresses, 1 per line. When I sort it with no options, I don't get a pure ASCII sort. Here's an example file with just 3 lines: 12.37.89.3 128.52.23.9 12.96.86.83 Running sort on it with absolutely no options returns the same line order. i.e. cat file|sort Editing the file and flipping lines 1 and 3 and then sorting again returns the original line order shown above, so sorting is going on, but its not what I was expecting. How can 128. sort between the two 12. items? Anyone know what's going on here? I tried -n and -g options but they don't provide an ASCII sort, and they mess up on the 3rd octet. Bill Gradwohl (817) 224-9400 x211 www.ycc.com SPAMstomper Protected Email