Updating template to render items with the correct sort order.

Also updating the template layer.