This is a cargo sub-command that takes a manifest as a single argument and checks if various fields are sorted. It returns 0 if all fields are sorted and 1 otherwise.
sh
cargo install toml-sorted
sh
cargo toml-sorted /path/to/Cargo.toml
It currently checks the following fields in a manifest:
MIT