Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Default order in torrent list should be numerical order
Browse files Browse the repository at this point in the history
Use numerical sort instead of alphanumerical sort.

Fixes: #7361
  • Loading branch information
feross committed Feb 23, 2017
1 parent 83180ce commit 8592aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/webtorrent/components/torrentFileList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8592aeb

Please sign in to comment.