Error:

Can't call method "sort" on an undefined value at /usr/share/koha/lib/C4/Search.pm line 404.