Handlebars Block Helper : each with sort
问题 I have an array of json objects which I output using a Handlebars template; I am currently doing using {{#each object}}...{{/each}}. I now need to sort the objects by one of the object's properties, which again is no problem using a handlebars helper & coffeescript, however, I have a problem in my template in that I cannot work out how to iterate over the sorted array using each. My research so far indicates that I probably need to write a custom Handlebars helper which will, in effect, be: {