From 8592aeb435fe26b56c3bd4aea8e9acf6c1ea37c1 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 23 Feb 2017 15:04:57 -0800 Subject: [PATCH] Default order in torrent list should be numerical order Use numerical sort instead of alphanumerical sort. Fixes: https://github.com/brave/browser-laptop/issues/7361 --- js/webtorrent/components/torrentFileList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/webtorrent/components/torrentFileList.js b/js/webtorrent/components/torrentFileList.js index f46e2a5c6f..c837139d44 100644 --- a/js/webtorrent/components/torrentFileList.js +++ b/js/webtorrent/components/torrentFileList.js @@ -19,7 +19,7 @@ class TorrentFileList extends React.Component { defaultHeading='num' defaultHeadingSortOrder='asc' rows={files.map((file, i) => [ - String(i + 1), + i + 1, {cell: this.renderFileLink(file, false)}, {cell: this.renderFileLink(file, true)}, prettierBytes(file.length)