fixed conditions
Merge pull request #2762 from ilya-lavrenov:ipp_sort