Sort ipsets, bugfixes