sort and filter in place, need to ensure permanence