handlebars for each sort and keep original index