sortBy

Return

the same AmityCommunityQuery.Builder instance.

Parameters

sortBy

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