fixed sorting on filtering