Fixed render order of items in template