Fix with sorting and parametrs with bool type