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