itchyny / calendar.vim

A calendar application for Vim
MIT License
1.95k stars 72 forks source link

Sorting of events in a given day #132

Closed isene closed 6 years ago

isene commented 6 years ago

As it is now, events are sorted by the first number regardless of the time format. It should be sorted by time. Example:

Current sorting: 11:30 Meeting 14:00 Call John 9:30 Call Anna

Should be: 9:30 Call Anna 11:30 Meeting 14:00 Call John

(alternatively, all single digit hours could be prefixed with "0", i.e. 9:30 => 09:30. This would make the sorting work as intended).

itchyny commented 6 years ago

I cannot reproduce but there might be some situation that sort fails. I don't know why...

screen shot 2017-12-13 at 8 45 54
isene commented 6 years ago

Here's mine: http://isene.org/x/2017-12-13-093308_622x466_scrot.png

isene commented 6 years ago

Could we in any case change 9:30 => 09:30 ?

itchyny commented 6 years ago

I have fixed the problem, sort considering events without duration. Let me keep the format of the hour because it will be a big change across the plugin code.

isene commented 6 years ago

OK. Thanks for the update. Works fine now :-)