fix sorting into search list