javascript - How can I sort an event by id (descending) in FullCalendar? -


how can sort event id in desc order?

my events coming , default sort asc order , want sort events desc order. latest event show first.

code have used,

if(jquery().fullcalendar) {             eventorder: "eventorder", } 

enter image description here

from eventorder documentation.

a name of event object property, "title". can name of non-standard field. sorting happen in ascending order. if prefixed minus sign "-title", sorting happen in descending order.

so set -

eventorder: "-id", 

Comments