# HG changeset patch # User Glenn Morris # Date 1194407817 0 # Node ID 9e350f92b40d133a41dd8a52cd07aa788ba7a921 # Parent 9bb0a271c2eb320394747520c9379a5aafa4dcaa David Hansen (eshell-extended-glob): Sort matches. diff -r 9bb0a271c2eb -r 9e350f92b40d lisp/eshell/em-glob.el --- a/lisp/eshell/em-glob.el Wed Nov 07 03:46:22 2007 +0000 +++ b/lisp/eshell/em-glob.el Wed Nov 07 03:56:57 2007 +0000 @@ -258,7 +258,7 @@ (eshell-glob-entries (file-name-as-directory ".") paths)) (if message-shown (message nil))) - (or (and matches (nreverse matches)) + (or (and matches (sort matches #'string<)) (if eshell-error-if-no-glob (error "No matches found: %s" glob) glob))))