fix template position ordering
Merge pull request #1105 from simplysoft/position-order

define template position ordering