Faster sorting in sparsevec.