Ensure sorting is applied for in-directory

In initial-state, the call to dir-list will sort the results of directory-list. However, in initial-state, there is a different path that will call directory-list without sorting. This change makes these paths consistent.
This commit is contained in:
evdubs 2020-08-06 17:19:43 -10:00 committed by Matthew Flatt
parent 776b69e399
commit 980a9fbd4d

View File

@ -2335,7 +2335,7 @@
(if orig-dir
(dir-list (path->complete-path orig-dir init-dir)
orig-dir null)
(directory-list init-dir)))
(sort (directory-list init-dir) path<?)))
(define in-directory
(case-lambda