summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/assets/js/lib/views/stream/hootstream.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/stream/hootstream.js b/public/assets/js/lib/views/stream/hootstream.js
index 50b2f46..d13ae0a 100644
--- a/public/assets/js/lib/views/stream/hootstream.js
+++ b/public/assets/js/lib/views/stream/hootstream.js
@@ -344,7 +344,11 @@ var HootStream = View.extend({
return null;
}
const $table = $("<div class='fileList'>");
- for (const file of files.sort((file) => file.filename.toLowerCase())) {
+ const sortedFiles = files
+ .map((file) => [file.filename.toLowerCase(), file])
+ .sort((a, b) => a[0].localeCompare(b[0]))
+ .map(([, file]) => file);
+ for (const file of sortedFiles) {
const $el = this.renderFile(this.fileTemplate, file);
$table.append($el);
}