working on association sorting and filtering