fixed the sorting of data items in catalogue after searching