fixed repository sort and filter