This repository was archived by the owner on Sep 2, 2026. It is now read-only.
Repository navigation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This is a situation where data is viewed from a database and the data is visible in calendar.
Here's the data you inquired about.
[ { "id": 1, "name": "project1", "status": 0, "start": "2023-02-28", "end": "2023-03-13" }, { "id": 2, "name": "project2", "status": 0, "start": "2023-02-25", "end": "2023-03-11" }, { "id": 3, "name": "project3", "status": 0, "start": "2023-02-28", "end": "2023-05-20" } ]const events = []; list.forEach((data)=>{ events.push({ id: data.id, title: data.name, start: data.start, end: data.end }); }); calendar.createEvents(events);The results I want are in the order of project1, project2, and project3.
How do I sort the order by id?
All reactions