indexSort now works, but doesn't behave properly for repeat values. Will
implement a fix for this in the future. Works fine for non-repeat sets
though.