PrFalken/leonardo — pull request #38 by ewen-naos-nz (2014-07-03 01:50:14+00:00)
Title: Add 'field_order' property to set field order

yaml.load does not preserve field order in original file (see: http://pyyaml.org/ticket/29), so Leonardo uses the field order provided by the dict's hashing algorithm. For some graphs it is very helpful to specify the field order precisely. This patch adds a 'field_order' property to allow an ordered list to specify the order. For example:

field_order:
- nice
- user
- irq
- softirq
- steal
- guest
- system
- iowait

Default is still "field order provided by dict's hashing algorithm", but it may be worth making the default order "alphabetically sorted".