[support] sorting nodes in custom template