diff --git a/src/cli/search.rs b/src/cli/search.rs index 21e1446cf..6cd33952c 100644 --- a/src/cli/search.rs +++ b/src/cli/search.rs @@ -94,6 +94,9 @@ where latest_packages.extend(records_of_repo.into_values().collect_vec()); } + // sort all versions across all channels and platforms + latest_packages.sort_by(|a, b| a.package_record.version.cmp(&b.package_record.version)); + Ok(latest_packages) }