Load files in Human Sort Order as well when dropping them into the "New Names" list

This commit is contained in:
Reinhard Pointner 2016-09-28 15:16:13 +08:00
parent d829ef97c8
commit 99ad431994
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class NamesListTransferablePolicy extends FileTransferablePolicy {
loadTorrentFiles(files, values);
} else {
// load all files from the given folders recursively up do a depth of 32
listFiles(files).stream().map(FastFile::new).forEach(values::add);
listFiles(files).stream().sorted(HUMAN_ORDER).map(FastFile::new).forEach(values::add);
}
model.addAll(values);