Elements with negative saved indices are now sorted to the end