DEV Community

Discussion on: How to sort a vector of a custom struct in Rust

Collapse
 
lexlohr profile image
Alex Lohr

Wouldn't it be simpler to count_b.cmp(count_a) to change the ordering?