# HG changeset patch # User Rik # Date 1387148914 28800 # Node ID 181bbce785956bb0f020e688bc5c7fbc6a284254 # Parent 647d806868ee1973fea56ae15be7bdcc7e57975a Sort result of genpath() for matlab compatibility (bug #40903). * load-path.cc (genpath): Sort each directory level before parsing. diff -r 647d806868ee -r 181bbce78595 libinterp/corefcn/load-path.cc --- 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 ();