Skip to content

Make readdir ordering deterministic#49

Open
joliss wants to merge 1 commit intoAvianFlu:masterfrom
joliss:sort
Open

Make readdir ordering deterministic#49
joliss wants to merge 1 commit intoAvianFlu:masterfrom
joliss:sort

Conversation

@joliss
Copy link
Copy Markdown
Contributor

@joliss joliss commented Jul 8, 2014

The .sort is extremely fast, and it cannot hurt to make things
deterministic, to avoid flickering tests for instance.


This is borderline bikesheddy, but I noticed the readdir call without sort when I read the source. I like to protect all my readdir calls (as well as Object.keys and friends) with .sort to keep my libraries deterministic.

Please merge if you like, or close otherwise. :)

The .sort is extremely fast, and it cannot hurt to make things
deterministic, to avoid flickering tests for instance.
@joliss
Copy link
Copy Markdown
Contributor Author

joliss commented Jul 9, 2014

I think Travis is just having a hiccup, the test suite passes on Node 0.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant