applied filter and sort