io.directories.search: a better fix for the linux entry ordering issue.

windows-drag
John Benediktsson 2019-03-21 19:36:05 -07:00
parent 1c44494b32
commit 25b29e084d
1 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
USING: combinators fry io.directories io.directories.hierarchy USING: combinators fry grouping io.directories
io.directories.search io.files.unique io.pathnames kernel math io.directories.hierarchy io.directories.search io.files.unique
namespaces sequences sorting splitting splitting.monotonic io.pathnames kernel math namespaces sequences sorting splitting
strings tools.test ; splitting.monotonic strings tools.test ;
{ t } [ { t } [
[ [
@ -106,8 +106,8 @@ strings tools.test ;
! preserve file traversal order, but sort ! preserve file traversal order, but sort
! alphabetically for cross-platform testing ! alphabetically for cross-platform testing
[ [ length ] bi@ < ] monotonic-split dup length 3 / group natural-sort
[ natural-sort ] map natural-sort concat [ natural-sort ] map concat
] with-variable ] with-variable
+breadth-first+ traversal-method [ +breadth-first+ traversal-method [