Protect serach and type sort