From db26a844816ad524fa4326f6a62382b930926340 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Fri, 4 Dec 2020 04:46:52 +0200 Subject: [PATCH] ; Fix line number sorting --- lisp/progmodes/xref.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.5