You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I seemed to be having some problems with load order, so I tested it by placing a file (test.js) in each folder containing only the line console.log("<folder name>") – here sorted by the OS:
/modules/myproj/test.js
/modules/myproj-accounts/test.js
/modules/myproj-app/test.js
/modules/myproj-app-accounts/test.js
To my great chagrin, this was the output in both server and browser console:
The text was updated successfully, but these errors were encountered:
dalgard
changed the title
Short folder name loaded AFTER long except when using a dash?
Folder with partial name loaded AFTER folder with full name except when using a dash?
Apr 30, 2015
The root cause is that - comes before / alphabetically, so I think we should be splitting on / and comparing each pair of path components individually.
Wouldn't it be enough to replace / with a character that is sure to come before all other legal file system characters, i.e. anything before 0x0a, roughly?
We should be doing a lexicographical comparison of path components, rather
than including the `/` characters in the comparison, to match the order
given by the Unix `find` or `ls` commands.
Fixes#4300.
I seemed to be having some problems with load order, so I tested it by placing a file (
test.js
) in each folder containing only the lineconsole.log("<folder name>")
– here sorted by the OS:To my great chagrin, this was the output in both server and browser console:
However, if I append a dash/hyphen to the two names that are moving place:
... it gives the expected result:
What gives???
I'm running OS X 10.9.5.
The text was updated successfully, but these errors were encountered: