Commit 7c3ef77c authored by Johan Claesson's avatar Johan Claesson Committed by Lars Ingebrigtsen

Make the reverse tabulated list sort stable

* lisp/emacs-lisp/tabulated-list.el (tabulated-list--get-sorter):
Make the reverse sorting stable (bug#37174).

Copyright-paperwork-exempt: yes
parent 280cf93f
Pipeline #3223 failed with stage
in 90 minutes and 3 seconds
......@@ -373,7 +373,7 @@ column. Negate the predicate that would be returned if
(if (stringp b) b (car b)))))))
;; Reversed order.
(if (cdr tabulated-list-sort-key)
(lambda (a b) (not (funcall sorter a b)))
(lambda (a b) (funcall sorter b a))
(defsubst tabulated-list--col-local-max-widths (col)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment