fixed sorting on filter