Lines 243-255
while ( my $c = $sth->fetchrow_hashref() ) {
Link Here
|
243 |
} |
243 |
} |
244 |
|
244 |
|
245 |
|
245 |
|
246 |
@checkouts_today = sort { $a->{timestamp} cmp $b->{timestamp} } @checkouts_today; |
246 |
@checkouts_today = sort { $a->{timestamp} cmp $b->{timestamp} } @checkouts_today; # latest to earliest |
247 |
@checkouts_today = reverse(@checkouts_today) |
247 |
@checkouts_today = reverse(@checkouts_today) |
248 |
unless ( C4::Context->preference('todaysIssuesDefaultSortOrder') eq 'desc' ); |
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; |
250 |
@checkouts_previous = sort { $a->{date_due} cmp $b->{date_due} } @checkouts_previous; # latest to earliest |
251 |
@checkouts_previous = reverse(@checkouts_previous) |
251 |
@checkouts_previous = reverse(@checkouts_previous) |
252 |
if ( C4::Context->preference('previousIssuesDefaultSortOrder') eq 'desc' ); |
252 |
unless ( C4::Context->preference('previousIssuesDefaultSortOrder') eq 'desc' ); # earliest to latest |
253 |
|
253 |
|
254 |
my @checkouts = ( @checkouts_today, @checkouts_previous ); |
254 |
my @checkouts = ( @checkouts_today, @checkouts_previous ); |
255 |
|
255 |
|
256 |
- |
|
|