indexmap-rs/indexmap

Add Unstable Sort Methods

Closed this issue · 2 comments

It would be nice to have access to the unstable sorting algorithms:

  • IndexMap::sort_unstable_keys
  • IndexMap::sort_unstable_by
  • IndexMap::sorted_unstable_by
  • IndexSet::sort_unstable
  • IndexSet::sort_unstable_by
  • IndexSet::sorted_unstable_by

I can do a PR if there's interest.

They should be sort_unstable* to remain similar to the slice methods, but otherwise that sounds fine.

Yes, you're right, I swapped them accidentally.