ripienaar / gdash

A dashboard for Graphite
http://www.devco.net/
Apache License 2.0
754 stars 117 forks source link

Sort the dashboard graphs by the name of the file in the directory, instead of the name displayed #70

Closed keymon closed 11 years ago

keymon commented 11 years ago

This patch will enforce the order of the graphs based on the graph filename. This allows you force a graph order without change the title.

powdahound commented 11 years ago

This seems counterintuitive to me. Perhaps it'd be better to have an optional field like sort_weight for each graph?

keymon commented 11 years ago

The .graphs in the dashboard are sorted based on the filename. But I agree that is not a good idea change the default sort. Instead of that, I will try create a global configuration setting like this:

:sorting_properties: [ "name", "weight" ]

and it will default to [ "name" ].