Added template tag to sort menu in editable pages according to their position in the menu