filter and sorting tested