refactor ip sort