which doesn't seem to be sorted in order of the hash key $sccs (i.e. the order is d.2.1.3 - b.1.1.1 - a.45.1.1 - a.1.1.2 - c.37.1.8 - b.74.1.1 whereas I would have expected a.1.1.2 - a.45.1.1 - b.1.1.1 - b.74.1.1 - c.37.1.8 - d.2.1.3 Can anybody see what I'm doing wrong?


The docs state that sort returns the keys sorted in the order of the hash _values_, which in this case will be... uh... well, not very sensible, if I read your data structure correctly. Try [% FOREACH code = s_to_c.$sccs.keys.sort %].

.tom



_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to