From 1fb903a227094b5995d807f7bfc1c3bb414b37e5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 15 Mar 2021 20:34:32 -0300 Subject: count only alphanumeric symbols in alphabetic sort --- ui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui.js b/ui.js index 5e9e6f9..8945ce0 100644 --- a/ui.js +++ b/ui.js @@ -1571,7 +1571,10 @@ class AppElement extends FocusElement { } else if (order === 'alphabetic') { item = { name: `${oldName} (alphabetic)`, - items: orderBy(flattenGrouplike(item).items, getNameWithoutTrackNumber) + items: orderBy( + flattenGrouplike(item).items, + t => getNameWithoutTrackNumber(t).replace(/[^a-zA-Z0-9]/g, '') + ) } } } else { -- cgit 1.3.0-6-gf8a5