For those who would like another programming problem: How to sort domain names AND IP addresses? NB. Domain names better to sort starting from level 1. bbb.aa aaa.bb ccc.cc ... Sincerely yours, Roman A.Suzi -- - Petrozavodsk - Karelia - Russia - mailto:rnd@onego.ru -