Sort ip list before create file with the list