Skip to content

Commit

Permalink
Sort Categories by issues count descending
Browse files Browse the repository at this point in the history
Fixes #25524
  • Loading branch information
dregad committed Mar 2, 2019
1 parent 3b1cd68 commit b7d7eca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/MantisGraph/pages/category_graph.php
Expand Up @@ -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;
Expand Down

0 comments on commit b7d7eca

Please sign in to comment.