Can you remove the sorting and see if that fixes it?
still the same bug around without sorting the snipnet I sent in previous mail still fails here (insertion is forced at position 0, which is what should happen anyway with sorting being turn on).
A+