dan-eyles/sculejs — pull request #44 by jkryl (2014-11-05 13:10:50+00:00)
Title: Allow alphabetical sorting and generate closures resilient to special ...

... chars in property names. Alphabetical sorting was provided by special sort type "2", but that's not compatible with mongoDb and less powerful as it doesn't allow sorting in both directions. Special sort type "2" could be removed now, but I left it for backward compatibility.

If you have a property name obj["prop@strange"], then sculejs will throw exception because when constructing closure it uses obj.prop@strange instead of more safe obj["prop@strange"]