# must fail: abr_order_O7_throughput_0 # a capability's entries left in table order, not ordered by size (abr::order_manifest) diff --git a/wai/wai-rs/src/http_binding/abr.rs b/wai/wai-rs/src/http_binding/abr.rs index a8046b34..8c2cc113 100644 --- a/wai/wai-rs/src/http_binding/abr.rs +++ b/wai/wai-rs/src/http_binding/abr.rs @@ -389,7 +389,7 @@ pub fn order_manifest(head: &Head, m: &ManifestV2, eligible: &dyn Fn(&str) -> bo } let mut order = Vec::with_capacity(e.len()); for (_, mut g) in groups { - g.sort_by_key(|&i| (len(i), i)); + g.sort_by_key(|&i| i); let mut st = s.clone(); st.option_bytes = g.iter().map(|&i| len(i)).collect(); st.option_joules_micro = g.iter().map(|&i| s.option_joules_micro.get(i).copied().flatten()).collect();