Add the ability for the user to supply a function for ordering metrics in a metric group.
Merge remote branch 'upstream/master'
Merge pull request #210 from pcpiela/master

User defined sorting for metric groups