fix sorting problems on search index view