From 885332bbc4582b08d4f24526250876f3a7569067 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Fri, 5 Apr 2024 11:46:36 +0200 Subject: [PATCH] ; * dash.el (-sort): Add comment on sort :lessp. --- dash.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dash.el b/dash.el index e2d4298c..059095bf 100644 --- a/dash.el +++ b/dash.el @@ -3298,6 +3298,8 @@ Return the sorted list. LIST is NOT modified by side effects. COMPARATOR is called with two elements of LIST, and should return non-nil if the first element should sort before the second." (declare (important-return-value t)) + ;; Not yet worth changing to (sort list :lessp comparator); + ;; still seems as fast or slightly faster. (sort (copy-sequence list) comparator)) (defmacro --sort (form list)