These docs are for an old release. Info on upgrading to v6
edit doc

eventOrder

Determines the ordering events within the same day.

String / Array / Function, default: "start,-duration,allDay,title"

For most views, this determines the vertical ordering of events within the same day. For TimeGrid view however, it determines the horizontal ordering of events within the same day.

The default value puts earlier events first. If tied, it puts longer events first. If still tied, it puts all-day events first. If still tied, orders events by title, alphabetically.

If putting a lower-precedent event before a higher-precedent improves compactness, the algorithm will do so. To disable this behavior, set eventOrderStrict to true.

This setting accepts a few different arguments:

  • a name of an Event Object property, like "title". This can be the name of a non-standard field. Sorting will happen in ascending order. If prefixed with a minus sign like "-title", sorting will happen in descending order.

  • a comma-separated string of property names, like "title,propA,-propB"

  • a function that accepts two arguments and returns -1 or 1, similar to sort’s compare function.

  • an array of property names and functions like [ "title", "-propA", myFunc ].