View | Details | Raw Unified | Return to bug 14907
Collapse All | Expand All

(-)a/C4/Items.pm (-1 / +1 lines)
Lines 1238-1243 sub SearchItems { Link Here
1238
    } else {
1238
    } else {
1239
        my $sortby = (0 < grep {$params->{sortby} eq $_} @columns)
1239
        my $sortby = (0 < grep {$params->{sortby} eq $_} @columns)
1240
            ? $params->{sortby} : 'itemnumber';
1240
            ? $params->{sortby} : 'itemnumber';
1241
        $sortby = 'cn_sort' if $sortby eq 'itemcallnumber';
1241
        my $sortorder = (uc($params->{sortorder}) eq 'ASC') ? 'ASC' : 'DESC';
1242
        my $sortorder = (uc($params->{sortorder}) eq 'ASC') ? 'ASC' : 'DESC';
1242
        $query .= qq{ ORDER BY $sortby $sortorder };
1243
        $query .= qq{ ORDER BY $sortby $sortorder };
1243
    }
1244
    }
1244
- 

Return to bug 14907