Skip to content

Commit

Permalink
; * dash.el (-sort): Add comment on sort :lessp.
Browse files Browse the repository at this point in the history
  • Loading branch information
basil-conto committed Apr 5, 2024
1 parent e018d76 commit 885332b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dash.el
Expand Up @@ -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)
Expand Down

0 comments on commit 885332b

Please sign in to comment.