|
|
@@ -35,6 +35,7 @@ const _arrangeByMaterial = artistsList => {
|
|
35
|
35
|
}
|
|
36
|
36
|
|
|
37
|
37
|
let seen = 0
|
|
|
38
|
+let hasTitle = []
|
|
38
|
39
|
const _arrangeByAlpha = artistsList => {
|
|
39
|
40
|
const alphabet = [...'9abcdefghijklmnopqrstuvwxyz']
|
|
40
|
41
|
const flatPacked = []
|
|
|
@@ -49,13 +50,17 @@ const _arrangeByAlpha = artistsList => {
|
|
49
|
50
|
if(i == 0) {
|
|
50
|
51
|
seen = charaIndex
|
|
51
|
52
|
flatPacked.push({ slug: alphabet[seen], title: alphabet[seen], inbetween: true })
|
|
|
53
|
+ hasTitle.push(alphabet[seen])
|
|
52
|
54
|
}
|
|
53
|
55
|
|
|
54
|
56
|
if (charaIndex == seen + 1) {
|
|
55
|
57
|
seen++
|
|
56
|
58
|
if(seen > alphabet.length) { seen = 0 }
|
|
57
|
|
-
|
|
58
|
|
- flatPacked.push({ slug: alphabet[seen], title: alphabet[seen], inbetween: true })
|
|
|
59
|
+
|
|
|
60
|
+ if(!hasTitle.includes(alphabet[seen])) {
|
|
|
61
|
+ flatPacked.push({ slug: alphabet[seen], title: alphabet[seen], inbetween: true })
|
|
|
62
|
+ hasTitle.push(alphabet[seen])
|
|
|
63
|
+ }
|
|
59
|
64
|
}
|
|
60
|
65
|
flatPacked.push(artist)
|
|
61
|
66
|
})
|