From: Dmitry Gutov Date: Fri, 4 Dec 2020 02:46:52 +0000 (+0200) Subject: ; Fix line number sorting X-Git-Tag: emacs-28.0.90~4936 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=db26a844816ad524fa4326f6a62382b930926340;p=emacs.git ; Fix line number sorting --- diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 2a478099f8d..ccd5e1ae8b1 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -1279,7 +1279,7 @@ IGNORES is a list of glob patterns for files to ignore." ;; without the '| sort ...' part if GNU sort is not available on ;; your system and/or stable ordering is not important to you. ;; Note#2: '!*/' is there to filter out dirs (e.g. submodules). - "xargs -0 rg -nH --no-messages -g '!*/' -e | sort -t: -k1 -k2n" + "xargs -0 rg -nH --no-messages -g '!*/' -e | sort -t: -k1,1 -k2n,2" )) "Associative list mapping program identifiers to command templates.