From 17679d511ba8d8c157b5381ecfbd6226f2cd67d5 Mon Sep 17 00:00:00 2001 From: John Gerrard Holland Date: Tue, 12 Nov 2024 14:22:41 +0000 Subject: [PATCH] fix: make sort! declaration extend Base.sort! ... rather than shadowing it, which breaks the find_reflectance_peaks function in find_ice_labels.jl under some circumstances --- src/tracker/tracker-funcs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracker/tracker-funcs.jl b/src/tracker/tracker-funcs.jl index fe9e168b..3cb7b81d 100644 --- a/src/tracker/tracker-funcs.jl +++ b/src/tracker/tracker-funcs.jl @@ -103,7 +103,7 @@ end Sort the floes in `tracked` by area in descending order. """ -function sort!(tracked::Tracked) +function Base.sort!(tracked::Tracked) for container in tracked.data p = sortperm(container.props1, "area"; rev=true) for nm in namesof(container)