add search and sort directory