Skip to content

Commit

Permalink
Merge pull request #125 from JakeRoggenbuck/order-cpus
Browse files Browse the repository at this point in the history
Add sort
  • Loading branch information
JakeRoggenbuck authored Jan 11, 2022
2 parents 46a9bce + 27d6ad6 commit 3713b0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ pub fn list_cpus() -> Result<Vec<CPU>, Error> {
.map(|x| x.to_owned())
.collect();

cpus.sort();

let mut to_return: Vec<CPU> = Vec::<CPU>::new();

for cpu in cpus {
Expand Down

0 comments on commit 3713b0a

Please sign in to comment.