Important ordering fields for TeamAccess depend on user's identities data. User and identities has a one-to-many relationship, which forced us to prefetch the user-related data when listing team's accesses. Prefetch get data from the database using two SQL queries, and join data in Python. User's data were not available in the first SQL query. Without annotating the query set with user main identities data, we could not use default OrderingFilter backend code, which order_by() the queryset.