|
|
@@ -42,7 +42,12 @@ const _arrangeByAlpha = artistsList => {
|
|
42
|
42
|
const lastWord = artist.slug.split('-').filter(c => c).pop()
|
|
43
|
43
|
const firstCharaOfLastWord = lastWord[0]
|
|
44
|
44
|
const firstCharaOfSortWord = artist.sortname[0]
|
|
|
45
|
+
|
|
|
46
|
+ console.log(firstCharaOfLastWord, firstCharaOfSortWord)
|
|
|
47
|
+
|
|
45
|
48
|
const charaIndex = alphabet.indexOf(firstCharaOfLastWord) < alphabet.indexOf(firstCharaOfSortWord) ? alphabet.indexOf(firstCharaOfLastWord) : alphabet.indexOf(firstCharaOfSortWord)
|
|
|
49
|
+
|
|
|
50
|
+ console.log(charaIndex)
|
|
46
|
51
|
// The first artist you've seen in this batch
|
|
47
|
52
|
if(i == 0) {
|
|
48
|
53
|
seen = charaIndex
|