diff --git a/src/ui/torrent_details.js b/src/ui/torrent_details.js
index 8c0f257..6f648c2 100644
--- a/src/ui/torrent_details.js
+++ b/src/ui/torrent_details.js
@@ -34,9 +34,13 @@ function File({ file }) {
return (
-
- {file.path}
-
+ {
+ file.progress == 1.0
+ ?
+ {file.path}
+
+ : file.path
+ }
|
{file.priority} |
{file.availability} |
@@ -176,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 =>
|