aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-10-07 13:24:13 +0100
committergingerBill <gingerBill@users.noreply.github.com>2025-10-07 13:24:13 +0100
commitaf8c698b97a8577a2f05a191c8e6492a650f6f83 (patch)
tree8076a026cce4d00648419121eeaa7e033c3ad5c3
parent9e068c254b32767ea5b03af6b9955b34d0e4685d (diff)
use `ctx`
-rw-r--r--core/slice/sort.odin4
1 files 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)