aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/sort.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/sort.el')
-rw-r--r--lisp/sort.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/sort.el b/lisp/sort.el
index 359067a4af3..10426fa5244 100644
--- a/lisp/sort.el
+++ b/lisp/sort.el
@@ -506,7 +506,10 @@ Use \\[untabify] to convert tabs to spaces before sorting."
506 ;; Do not use it if there are any non-font-lock properties 506 ;; Do not use it if there are any non-font-lock properties
507 ;; in the region, since the sort utility would lose the 507 ;; in the region, since the sort utility would lose the
508 ;; properties. 508 ;; properties.
509 (let ((sort-args (list (if reverse "-rt\n" "-t\n") 509 ;; Set the field separator to tab to have the same effect as
510 ;; sort-columns which makes sure there are no tabs in the region
511 ;; worked.
512 (let ((sort-args (list (if reverse "-rt\t" "-t\t")
510 (format "-k1.%d,1.%d" 513 (format "-k1.%d,1.%d"
511 (1+ col-start) 514 (1+ col-start)
512 (1+ col-end))))) 515 (1+ col-end)))))