Skip to content

Commit

Permalink
Enumerate data files in a sorted order
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyvit committed Jul 29, 2012
1 parent b3d2c7d commit 303f409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datafiles.coffee
Expand Up @@ -20,7 +20,7 @@ class DataFileGroup

allFiles: ->
@mkdir()
for fileName in fs.readdirSync(@path) when fileName.match(@regexp)
for fileName in fs.readdirSync(@path).sort() when fileName.match(@regexp)
new DataFile(this, Path.join(@path, fileName), @fileNameToId(fileName))

file: (id) ->
Expand Down

0 comments on commit 303f409

Please sign in to comment.