A user, icaria36, reported an issue with the Calendar plugin, where enabling it disables sorting by Replies and Views in the Latest section. JammyDodger suspected it might be intentional, tracing the issue to a line of code. However, icaria36 discovered that the intended behavior was to disable other sorting methods only when sorting by start event date is enabled. Currently, sorting by other means is disabled regardless, which seems to be a bug. The issue was confirmed by frank.manuel, who pushed a fix to the discourse-calendar repository.
By default, topics in Latest can be sorted by Replies and Views, clicking the list headers. However, simply enabling calendar enabled in the settings disables these optional ways of sorting. You don’t even need to create a calendar-enabled post to trigger the change. If you disable the plugin, Replies and Views are clickable again.
Is this a bug or intended design? There doesn’t seem to be a relation between plugin and Latest sorting from a user point of view, and the Latest sorting feature is just as useful with Calendar enabled.
If I’m following the commit history correctly, the intended behavior is that, when sorting by start event date is enabled, then sorting by other means should be disabled. This means total sense.
However, right now sorting by other means is disabled regardless of whether sorting by start event date is enabled or not. This doesn’t seem to be the intended behavior, so maybe this is a bug indeed.