From 585d4659524a0b01cbf79df6d161eda892cd8cca Mon Sep 17 00:00:00 2001 From: Luminarys <8228526+Luminarys@users.noreply.github.com> Date: Fri, 14 Jun 2019 22:56:20 -0700 Subject: [PATCH] Sort with numeric compare on files --- src/ui/torrent_details.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/torrent_details.js b/src/ui/torrent_details.js index db919ad..bafa987 100644 --- a/src/ui/torrent_details.js +++ b/src/ui/torrent_details.js @@ -279,7 +279,7 @@ class Torrent extends Component {
{this.state.filesShown ? files.slice() - .sort((a, b) => a.path.localeCompare(b.path)) + .sort((a, b) => a.path.localeCompare(b.path, undefined, {numeric: true})) .map(file =>