mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 02:17:46 +08:00
fix(ci): stabilize cross-platform workflow checks
This commit is contained in:
@@ -1027,9 +1027,11 @@ fn sort_candidate_selection_rows(
|
||||
include_global_model: bool,
|
||||
) {
|
||||
rows.sort_by(|left, right| {
|
||||
let global_model_order = include_global_model
|
||||
.then(|| left.global_model_name.cmp(&right.global_model_name))
|
||||
.unwrap_or(std::cmp::Ordering::Equal);
|
||||
let global_model_order = if include_global_model {
|
||||
left.global_model_name.cmp(&right.global_model_name)
|
||||
} else {
|
||||
std::cmp::Ordering::Equal
|
||||
};
|
||||
global_model_order
|
||||
.then(left.provider_priority.cmp(&right.provider_priority))
|
||||
.then(left.key_internal_priority.cmp(&right.key_internal_priority))
|
||||
|
||||
Reference in New Issue
Block a user