Use a stable sorting algorithm for network plugin

Reviewed By: danielbuechele

Differential Revision: D6982276

fbshipit-source-id: 7a3f01ccaa3557fab24d8a4937d9fb30cc012f20
This commit is contained in:
Ram N
2019-08-16 11:47:34 -07:00
committed by Facebook Github Bot
parent a76eddd16a
commit 0e1c49b6b4

View File

@@ -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,