Skip to content

Commit

Permalink
Speed up sort
Browse files Browse the repository at this point in the history
  • Loading branch information
otsaloma committed Dec 12, 2024
1 parent c96f1e1 commit 1fb0373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataiter/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def sort(self, *, dir=1):
new = new[~na].concat(new[na])
return self.fast(new, object)
opt = self._optimize_for_sort()
new = self[opt.argsort()]
new = self[opt.argsort(kind="stable")]
if dir < 0:
new = new[::-1]
na = new.is_na()
Expand Down

0 comments on commit 1fb0373

Please sign in to comment.