diff --git a/plugins/MantisGraph/pages/category_graph.php b/plugins/MantisGraph/pages/category_graph.php index 03643eedab..1328864c79 100644 --- a/plugins/MantisGraph/pages/category_graph.php +++ b/plugins/MantisGraph/pages/category_graph.php @@ -34,6 +34,7 @@ print_summary_submenu(); $t_metrics = create_category_summary( $t_filter ); +array_multisort( $t_metrics, SORT_DESC, SORT_NUMERIC); # Dynamically set width ratio between 1 and 0.25 based on number of categories $t_wfactor = 1 - min( max( count( $t_metrics ), 25 ) - 25, 75 ) / 100;