TrevorBurnham/snockets — pull request #1 by magec (2013-08-20 12:00:09+00:00)
Title: Feature/sort all the things

We are experimenting issues when deploying code that uses snockets.

If require_tree is used, the order of the requirements may vary from one environment to another. This happens even when in sync mode, because the readdir function may return the items in a different order.

The solution proposed is to ensure items are sorted before continuing. This, when used in conjuntion with sync mode, will ensure requires are made in alphabetical order, so the behavior won't change from one OS to another. Its paremetrized with a new option in order to mantain backward compatibility.