Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #16463: Sort order defaults to descending
In view all page, when clicking on a column header to sort on it, the
default sort order is now Ascending as expected.
  • Loading branch information
dregad committed Oct 10, 2013
1 parent 821e578 commit 71c7b46
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/print_api.php
Expand Up @@ -1110,7 +1110,7 @@ function print_view_bug_sort_link( $p_string, $p_sort_field, $p_sort, $p_dir, $p
}
} else {
# Otherwise always start with ASCending
$t_dir = 'ASC';
$p_dir = 'ASC';
}

$t_sort_field = rawurlencode( $p_sort_field );
Expand All @@ -1127,9 +1127,8 @@ function print_view_bug_sort_link( $p_string, $p_sort_field, $p_sort, $p_dir, $p
}
} else {
# Otherwise always start with ASCending
$t_dir = 'ASC';
$p_dir = 'ASC';
}

$t_sort_field = rawurlencode( $p_sort_field );
print_link( "view_all_set.php?sort=$t_sort_field&dir=$p_dir&type=2", $p_string );
} else {
Expand Down

0 comments on commit 71c7b46

Please sign in to comment.