diff --git a/web/pages/viewer-info.tsx b/web/pages/viewer-info.tsx index 70edf11fd..5786e887f 100644 --- a/web/pages/viewer-info.tsx +++ b/web/pages/viewer-info.tsx @@ -86,6 +86,8 @@ export default function ViewersOverTime() { dataIndex: "connectedAt", key: "connectedAt", render: (time) => formatDistanceToNow(new Date(time)), + sorter: (a, b) => new Date(a.connectedAt).getTime() - new Date(b.connectedAt).getTime(), + sortDirections: ["descend", "ascend"] as SortOrder[], }, { title: "User Agent",