sortBy

Return

the same AmityCommentQuery.Builder instance.

Parameters

sortOption

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