Use a stable sorting algorithm for network plugin
Reviewed By: danielbuechele Differential Revision: D6982276 fbshipit-source-id: 7a3f01ccaa3557fab24d8a4937d9fb30cc012f20
This commit is contained in:
committed by
Facebook Github Bot
parent
a76eddd16a
commit
0e1c49b6b4
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user