Support » Plugin: amr ical events lists » Sort order of events per day depending on calendar

  • Resolved amay66

    (@amay66)


    Hi, I would like to use this plugin. But there are some issues yet I have to solve.

    I have 3 calendars with all day events.
    How can I make sure the events per day are sorted by their respective calendar.
    E.g.
    Monday Tuesday
    Events of Cal1 Events of Cal1
    Events of Cal2 Events of Cal2
    Events of Cal3 Events of Cal3

    The current version shows a different order for e.g. Tuesday.
    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter amay66

    (@amay66)

    In the moment events are displayed in the above order, which corresponds to the order in which calendars are specified in the short code statement. This is fine. Maybe the problem was caused by a non-empty cache?

    Plugin Author anmari

    (@anmari)

    Hi amay,

    The plugin sorts by event date and time. If those are exactly the same, then I think it would be the order they were fed into array, most likely in the order that the calendars were specified.
    It does also have to cope with modifications to events which come as a separate VEVENT in the file, and get applied to the array of events. Maybe that does something? no idea.
    If you have programming skills there are two filters you could try use to influence the sorting of all day events on a given day.

    ‘amr_events_after_sort’
    ‘amr_events_after_sort_and_constrain’

    They pass the full array of events and expect to get similar full array back. You’d have to work carefully to make sure you don’t mess the arrays up.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.