Ver código fonte

:recycle: unflipping comparison to use override name for title creation

tags/0.9.0
J 4 anos atrás
pai
commit
7c50a31467
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      vue-theme/src/store/modules/arrangements.js

+ 1
- 1
vue-theme/src/store/modules/arrangements.js Ver arquivo

@@ -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)

Carregando…
Cancelar
Salvar