From af8c698b97a8577a2f05a191c8e6492a650f6f83 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 7 Oct 2025 13:24:13 +0100 Subject: [PATCH] use `ctx` --- core/slice/sort.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/slice/sort.odin b/core/slice/sort.odin index 75c341d7c..7e2415249 100644 --- a/core/slice/sort.odin +++ b/core/slice/sort.odin @@ -358,7 +358,7 @@ sort_by_key :: proc(data: $T/[]$E, key: proc(E) -> $K) where ORD(K) { case a > b: return .Greater } return .Equal - }, nil) + }, ctx) } reverse_sort_by_key :: proc(data: $T/[]$E, key: proc(E) -> $K) where ORD(K) { @@ -378,7 +378,7 @@ reverse_sort_by_key :: proc(data: $T/[]$E, key: proc(E) -> $K) where ORD(K) { case a > b: return .Less } return .Equal - }, nil) + }, ctx) } @(require_results)