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