int SortCondition(AUIForumCommentCell a, AUIForumCommentCell b) { int ret = System.DateTime.Compare(a.Comment.CreatedAt, b.Comment.CreatedAt); if (ret != 0) { return ret; } ret = string.Compare(a.Comment.User.Name, b.Comment.User.Name); return ret; }
public void RemoveCell(AUIForumCommentCell cell) { commentCells.Remove(cell); contents.RemoveItem(cell.GetComponent<RectTransform>()); Destroy(cell.gameObject); }