Revert "Fix id_order var in template."

This reverts commit 280d01d01b621228c747476a5670ff477f6a4846.