End of sort and search