use `sort_by_key` to improve readabilty
hellow554 opened this issue · 1 comments
hellow554 commented
At first I thought: you could just use cmp
instead of partial_cmp.unwrap
but then at the second look, why don't you just use sort_by_key
(or better sort_unstable_key_by
which will improve performance for large slices because of the underlying sorting algorithmn)
iolivia commented
great suggestion, thank you @hellow554!