fixed the filter sort