diff --git a/src/ui/torrent_details.js b/src/ui/torrent_details.js index 2bc7f71..6f648c2 100644 --- a/src/ui/torrent_details.js +++ b/src/ui/torrent_details.js @@ -180,7 +180,7 @@ class Torrent extends Component { - {files.map(file => )} + {files.slice().sort((a, b) => a.path.localeCompare(b.path)).map(file => )}
diff --git a/src/ui/torrent_table.js b/src/ui/torrent_table.js index d22dfce..e62d5ff 100644 --- a/src/ui/torrent_table.js +++ b/src/ui/torrent_table.js @@ -33,7 +33,7 @@ class TorrentTable extends Component { - {Object.values(torrents).map(t => + {Object.values(torrents).slice().sort((a, b) => a.name.localeCompare(b.name)).map(t =>