Add sorting for filters