Fixed ipSort