[REBOL] Re: Simple sorting
From: anton:lexicon at: 27-Sep-2002 14:14
You could also do it like this, which does not use dir? and does not use any extra functions: dir: %./ ; current directory result: copy  dirs: copy  files: copy  foreach file read dir [ append either #"/" = last file [dirs][files] file ] result: compose [(sort dirs) (sort files)] I have found it handy to have the files and dirs in separate blocks for other processing, so that may make this way preferable. Anton.