Add sort to ItemSearch, And modify tests.