Sort statistics by count (#3748)

This commit is contained in:
Jonathan Plasse 2023-03-26 22:45:35 +02:00 committed by GitHub
parent e603382cf0
commit cd75b57036
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -504,6 +504,7 @@ impl Printer {
.iter()
.any(|message| message.kind.fixable),
})
.sorted_by_key(|statistic| Reverse(statistic.count))
.collect::<Vec<_>>();
let mut stdout = BufWriter::new(io::stdout().lock());