Here's something a bit shorter. You shouldn't need to resort to `std::int::MIN` either. https://github.com/BurntSushi/rust-sorts/blob/master/src/test.rs#L103