ankane/chartkick — pull request #114 by dontfidget (2014-08-09 20:14:17+00:00)
Title: sort automatically generated multiple series list by name

The automatically generated hashes with the name and description keys are not sorted so the output order is non deterministic. This change just calls sort so that they are deterministic (and happen to be sorted by name). This is useful for things like multiple pie charts on a page, where you would like the categories to retain the same color through multiple charts.

Now maybe I shouldn't be depending on this code which is a rather unfortunate extension -- not that I have a better solution -- but I've found it easier just to comply with it.