python-caldav / caldav

Apache License 2.0
313 stars 91 forks source link

Sorting algorithm in `calendar.search` does not tolerate upper-case attribute names #352

Closed tobixen closed 6 months ago

tobixen commented 7 months ago

Ref #351, attn @ArtemIsmagilov

I see that in the test code, attributes are passed in lower case rather than upper case. The whole sorting algorithm should be refactored, as it's using the vobject library rather than the icalendar library, eventually all internal usage of vobject should be removed at some point. Anyway, could you confirm that replacing 'DTSTART' with 'dtstart' would solve your sorting issue?

ArtemIsmagilov commented 7 months ago

Yes, it is!

tobixen commented 7 months ago

This is a bug that should be fixed, so we leave the issue open.