(directory) sort order
Posted: Sat May 03, 2008 10:03 am
I noticed today that BSD and MacOS X sort the results of a newLISP (directory) call differently when there are numbers involved...
In BSD:
("." ".." "10atom.lsp" "20cache.lsp" "default-plugin.lsp" "01debug.lsp")
In MacOS X:
("." ".." "01debug.lsp" "10atom.lsp" "20cache.lsp" "default-plugin.lsp")
I don't understand the BSD order...? Luckily, (sort) to the rescue...!
In BSD:
("." ".." "10atom.lsp" "20cache.lsp" "default-plugin.lsp" "01debug.lsp")
In MacOS X:
("." ".." "01debug.lsp" "10atom.lsp" "20cache.lsp" "default-plugin.lsp")
I don't understand the BSD order...? Luckily, (sort) to the rescue...!