Fix typo in quantization

A typo and JavaScript's wonderful permissiveness led to a situation where the sorted attribute was not being correctly set after performing a sort.

In practice, this bug makes no difference whatsoever. It just causes redundant, unnecessary operations.