From 0e1c49b6b4da30efbb15c82aa3dbe32dd7931d2e Mon Sep 17 00:00:00 2001 From: Ram N Date: Fri, 16 Aug 2019 11:47:34 -0700 Subject: [PATCH] Use a stable sorting algorithm for network plugin Reviewed By: danielbuechele Differential Revision: D6982276 fbshipit-source-id: 7a3f01ccaa3557fab24d8a4937d9fb30cc012f20 --- src/plugins/network/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/network/index.js b/src/plugins/network/index.js index 79a2a9aaa..9491436d7 100644 --- a/src/plugins/network/index.js +++ b/src/plugins/network/index.js @@ -385,7 +385,7 @@ function calculateState( } } - rows.sort((a, b) => (String(a.sortKey) > String(b.sortKey) ? 1 : -1)); + rows.sort((a, b) => Number(a.sortKey) - Number(b.sortKey)); return { sortedRows: rows,