Fix id_order var in template.

Signed-off-by: Marco Cervellin <marco@macodev.com>