need to fix problem & see extended description

- added some prototype of common filters for searching and sorting;
- refactoring;