Lines 243-249
while ( my $c = $sth->fetchrow_hashref() ) {
Link Here
|
243 |
@checkouts_today = reverse(@checkouts_today) |
243 |
@checkouts_today = reverse(@checkouts_today) |
244 |
unless ( C4::Context->preference('todaysIssuesDefaultSortOrder') eq 'desc' ); # earliest to latest |
244 |
unless ( C4::Context->preference('todaysIssuesDefaultSortOrder') eq 'desc' ); # earliest to latest |
245 |
|
245 |
|
246 |
@checkouts_previous = sort { $a->{date_due} cmp $b->{date_due} } @checkouts_previous; # latest to earliest |
246 |
@checkouts_previous = |
|
|
247 |
sort { $a->{date_due} eq $b->{date_due} ? $a->{timestamp} cmp $b->{timestamp} : $a->{date_due} cmp $b->{date_due} } |
248 |
@checkouts_previous; # latest to earliest |
247 |
@checkouts_previous = reverse(@checkouts_previous) |
249 |
@checkouts_previous = reverse(@checkouts_previous) |
248 |
unless ( C4::Context->preference('previousIssuesDefaultSortOrder') eq 'desc' ); # earliest to latest |
250 |
unless ( C4::Context->preference('previousIssuesDefaultSortOrder') eq 'desc' ); # earliest to latest |
249 |
|
251 |
|
250 |
- |
|
|