Hello! If You do a sort -t "|" -k 2 on: -- 1739|10.41.4.66 1742|10.41.4.65 1744|10.41.4.69 1749|10.41.4.60 1752|10.41.4.62 1762|10.41.4.64 1768|10.41.4.67 1769|10.41.4.61 1770|10.41.4.63 1791|10.41.4.6 1805|10.41.4.68 -- you get this: -- 1791|10.41.4.6 1749|10.41.4.60 1769|10.41.4.61 1752|10.41.4.62 1770|10.41.4.63 1762|10.41.4.64 1742|10.41.4.65 1739|10.41.4.66 1768|10.41.4.67 1805|10.41.4.68 1744|10.41.4.69 -- If You change the fields and do a sort -t "|" -k 1 on: -- 10.41.4.66|1739 10.41.4.65|1742 10.41.4.69|1744 10.41.4.60|1749 10.41.4.62|1752 10.41.4.64|1762 10.41.4.67|1768 10.41.4.61|1769 10.41.4.63|1770 10.41.4.6|1791 10.41.4.68|1805 -- you get this: -- 10.41.4.60|1749 10.41.4.61|1769 10.41.4.62|1752 10.41.4.63|1770 10.41.4.64|1762 10.41.4.65|1742 10.41.4.66|1739 10.41.4.67|1768 10.41.4.68|1805 10.41.4.69|1744 10.41.4.6|1791 -- The sort result is different but shuold be the same while in both cases the first sort key (ip-address) is used. First on is Ok, but second not. The problem line is that one with .6 at the end of the ip-address. It's the smallest an should come at first. Cheers, ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com