Skip to content

Commit

Permalink
Consistent sort order for Issue trends
Browse files Browse the repository at this point in the history
By Status is displayed in ascending order, whereas By Category has the
most recent bucket first.

Fixes #34890
  • Loading branch information
dregad committed Feb 26, 2025
1 parent 20bfe27 commit de722bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/MantisGraph/pages/issues_trend_bycategory_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,12 @@
echo '</tr>';

for( $t_ptr = 0; $t_ptr <= $t_bin_count; $t_ptr++ ) {
$t = $t_bin_count - $t_ptr;
echo '<tr>';
echo '<td>' . $t_ptr . '</td>';
echo '<td>' . date( $t_date_format, $t_marker[$t_ptr] ) . '</td>';
echo '<td>' . date( $t_date_format, $t_marker[$t] ) . '</td>';
foreach ( $t_category as $t_cat ) {
echo '<td>' . ( $t_data[$t_ptr][$t_cat] ?? 0 ) . '</td>';
echo '<td>' . ( $t_data[$t][$t_cat] ?? 0 ) . '</td>';
}
echo '</tr>';
}
Expand Down

0 comments on commit de722bf

Please sign in to comment.