|
|
@@ -56,7 +56,7 @@ const _arrangeByAlpha = (postsList, seenTitles) => {
|
|
56
|
56
|
const lastWord = post.slug.split('-').filter(c => c).pop()
|
|
57
|
57
|
const firstCharaOflastWord = lastWord[0]
|
|
58
|
58
|
const firstCharaOfSortWord = post.sortname ? post.sortname[0] : 'z'
|
|
59
|
|
- const charaIndex = alphabet.indexOf(firstCharaOflastWord) < alphabet.indexOf(firstCharaOfSortWord) ? alphabet.indexOf(firstCharaOflastWord) : alphabet.indexOf(firstCharaOfSortWord)
|
|
|
59
|
+ const charaIndex = alphabet.indexOf(firstCharaOflastWord) > alphabet.indexOf(firstCharaOfSortWord) ? alphabet.indexOf(firstCharaOflastWord) : alphabet.indexOf(firstCharaOfSortWord)
|
|
60
|
60
|
|
|
61
|
61
|
storeTitle(alphabet[charaIndex])
|
|
62
|
62
|
flatPacked.push(post)
|