changeset 18136:181bbce78595

Sort result of genpath() for matlab compatibility (bug #40903). * load-path.cc (genpath): Sort each directory level before parsing.
author Rik <rik@octave.org>
date Sun, 15 Dec 2013 15:08:34 -0800
parents 647d806868ee
children eb8f0ccc56b7
files libinterp/corefcn/load-path.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/load-path.cc	Fri Dec 13 22:35:31 2013 -0800
+++ b/libinterp/corefcn/load-path.cc	Sun Dec 15 15:08:34 2013 -0800
@@ -2066,7 +2066,7 @@
     {
       retval = dirname;
 
-      string_vector dirlist = dir.read ();
+      string_vector dirlist = dir.read ().sort (false);
 
       octave_idx_type len = dirlist.length ();