diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 5a4c9685ab..9b264d016a 100644 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -2,6 +2,7 @@ Cacti CHANGELOG 1.1.7 -issue#655: Data source not displaying device name +-issue#680: Sort order in Time Graph View -issue#687: Cacti DB access not compatible with PHP 7 -feature: Updated Dutch language -feature: Updating PHPMailer to 5.2.23 diff --git a/lib/functions.php b/lib/functions.php index f7f31f8afd..6a60e1f2b7 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -2796,7 +2796,11 @@ function get_associated_rras($local_graph_id, $sql_where = '') { LEFT JOIN data_source_profiles_rra AS dspr ON dsp.id=dspr.data_source_profile_id AND dtd.local_data_id != 0 - WHERE gti.local_graph_id = ? $sql_where", array($local_graph_id)); + WHERE gti.local_graph_id = ? + $sql_where + ORDER BY dspr.steps", + array($local_graph_id) + ); } /* get_browser_query_string - returns the full url, including args requested by the browser