Lines 265-277
while ( my $c = $sth->fetchrow_hashref() ) {
Link Here
|
265 |
} |
265 |
} |
266 |
|
266 |
|
267 |
|
267 |
|
268 |
@checkouts_today = sort { $a->{timestamp} cmp $b->{timestamp} } @checkouts_today; |
268 |
@checkouts_today = sort { $a->{timestamp} cmp $b->{timestamp} } @checkouts_today; # latest to earliest |
269 |
@checkouts_today = reverse(@checkouts_today) |
269 |
@checkouts_today = reverse(@checkouts_today) |
270 |
unless ( C4::Context->preference('todaysIssuesDefaultSortOrder') eq 'desc' ); |
270 |
unless ( C4::Context->preference('todaysIssuesDefaultSortOrder') eq 'desc' ); # earliest to latest |
271 |
|
271 |
|
272 |
@checkouts_previous = sort { $a->{date_due} cmp $b->{date_due} } @checkouts_previous; |
272 |
@checkouts_previous = sort { $a->{date_due} cmp $b->{date_due} } @checkouts_previous; # latest to earliest |
273 |
@checkouts_previous = reverse(@checkouts_previous) |
273 |
@checkouts_previous = reverse(@checkouts_previous) |
274 |
if ( C4::Context->preference('previousIssuesDefaultSortOrder') eq 'desc' ); |
274 |
unless ( C4::Context->preference('previousIssuesDefaultSortOrder') eq 'desc' ); # earliest to latest |
275 |
|
275 |
|
276 |
my @checkouts = ( @checkouts_today, @checkouts_previous ); |
276 |
my @checkouts = ( @checkouts_today, @checkouts_previous ); |
277 |
|
277 |
|
278 |
- |
|
|