summaryrefslogtreecommitdiff
path: root/src/components/ConnectionTable.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ConnectionTable.js')
-rw-r--r--src/components/ConnectionTable.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/components/ConnectionTable.js b/src/components/ConnectionTable.js
index 17293c0..2e7ba7f 100644
--- a/src/components/ConnectionTable.js
+++ b/src/components/ConnectionTable.js
@@ -34,6 +34,13 @@ function renderCell(cell, now) {
}
}
+const tableState = {
+ sortBy: [
+ // maintain a more stable order
+ { id: 'start', desc: true }
+ ]
+};
+
function Table({ data }) {
const now = new Date();
const {
@@ -45,7 +52,8 @@ function Table({ data }) {
} = useTable(
{
columns,
- data
+ data,
+ initialState: tableState
},
useSortBy
);