sortBy

Return

the same AmityCommunityMembershipQuery.Builder instance.

Parameters

sortBy

to specify the sorting option. When sortBy is AmityCommunityMembershipSortOption.DISPLAY_NAME, members will be sorted by displayName property ASC. When sortBy is AmityCommunityMembershipSortOption.FIRST_CREATED, members will be sorted by createdAt property ASC. When sortBy is AmityCommunityMembershipSortOption.LAST_CREATED, members will be sorted by createdAt property DESC. The default value of sortBy is AmityCommunityMembershipSortOption.DISPLAY_NAME.