From 1c03705de88dd99d80dbc037b00db07c8577e584 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 30 Aug 2021 01:50:12 +0200 Subject: [PATCH] upload filedrops in alphabetical order --- copyparty/web/up2k.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index 0160f80d..c9f89ba7 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -800,6 +800,12 @@ function up2k_init(subtle) { }); } + good_files.sort(function (a, b) { + a = a[1]; + b = b[1]; + return a < b ? -1 : a > b ? 1 : 0; + }); + var msg = ['{0} these {1} files?