diff --git a/core/slice/sort_private.odin b/core/slice/sort_private.odin index f568671a8..1a2a24b5b 100644 --- a/core/slice/sort_private.odin +++ b/core/slice/sort_private.odin @@ -13,7 +13,7 @@ Sort_Kind :: enum { Cmp, } -_stable_sort_general :: proc(data: $T/[]$E, call: $P, $KIND: Sort_Kind) { +_stable_sort_general :: proc(data: $T/[]$E, call: $P, $KIND: Sort_Kind) where (ORD(E) && KIND == .Ordered) || (KIND != .Ordered) #no_bounds_check { less :: #force_inline proc(a, b: E, call: P) -> bool { when KIND == .Ordered { return a < b