« get me outta code hell

sort: sortFlashesChronologically: sort acts alphabetically - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-31 22:05:44 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-31 22:06:05 -0300
commit304984c43f86e80c85474c14ad5aa4fa9f82a61e (patch)
tree8ce02fcbeed7d764335bdbf17708429f35f3d868 /src/util
parent4f91ee5bb770c11435e501dceb7db62991ce66af (diff)
sort: sortFlashesChronologically: sort acts alphabetically
See issue #323.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/sort.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/sort.js b/src/util/sort.js
index b3a90812..9e9de641 100644
--- a/src/util/sort.js
+++ b/src/util/sort.js
@@ -388,7 +388,8 @@ export function sortFlashesChronologically(data, {
   getDate,
 } = {}) {
   // Group flashes by act...
-  sortByDirectory(data, {
+  sortAlphabetically(data, {
+    getName: flash => flash.act.name,
     getDirectory: flash => flash.act.directory,
   });