Skip to content

Wiki journal index wrong sorting. #207

@artkpv

Description

@artkpv

Description

Steps:

  1. Run :WikiJournalIndex

Actual behavior: My months sorted like this: Nov, Jan, .., Sep, Dec, Oct.

Expected behavior: They are sorted in asc order: Jan, Feb, .., Nov, Dec.

Minimal working example

In index.md:

# Дневник

# 2019

## 11.Ноябрь

[2019-11-01](/дневник/2019-11-01)
[2019-11-04](/дневник/2019-11-04)
etc ... 


## 01.Январь

... recods 

(Other months)

## 09.Сентябрь

[2019-09-05](/дневник/2019-09-05)

... records

## 12.Декабрь

[2019-12-01](/дневник/2019-12-01)
...
/path/to/minimal-working-example-wiki
├── index.md
├── дневник
│   └── 2017-11-24.md 
... 

vimrc:

let g:wiki_root = '~/mydir/notes/'
let g:wiki_filetypes = ['wiki', 'md']

let g:wiki_link_target_type = 'md'

let g:wiki_month_names = [ '01.Январь', '02.Февраль', '03.Март', '04.Апрель', '05.Май', '06.Июнь', '07.Июль', '08. Август', '09.Сентябрь', '10.Октябрь', '11.Ноябрь', '12.Декабрь' ]

let g:wiki_toc_title = 'Содержание'


let g:wiki_journal = {
    \ 'index_use_journal_scheme': v:false,
    \ 'name': 'дневник',
    \ 'frequency': 'daily',
    \ 'date_format': {
    \   'daily' : '%Y-%m-%d',
    \   'weekly' : '%Y_w%V',
    \   'monthly' : '%Y_%m_month',
    \ },
    \}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions