Refactored sort_ip using schwartzian transform pattern
Don't sort the default switch