I'm creating an Strapi API and want to display them on the frontend. I can do this already but I want to display them in the HTML ordered from closest to latest.
My API returns JSON like this:
"id": 1,
    "title": "SpaceX Falcon 9 Starlink Launch 23",
    "description": "A SpaceX Falcon 9 Rocket will depart from Canaveral Space Force Station, Florida and deploy approximately 60 satellites.",
    "launchdate": "2021-04-07T07:04:00.000Z",
    "tag": null,
    "youtubeWatchcode": "",
    "buttonText": "Watch Live",
    "gridposition": "mainhead",
    "backgroundImagePlacement": 100,
    "launchid": null,
    "published_at": "2021-03-31T10:14:17.761Z",
    "created_at": "2021-03-31T10:14:02.128Z",
    "updated_at": "2021-03-31T05:07:16.729Z",
...
Keep in mind the "id" is not in the order of which I like.
How do I sort by the "launchdate" value
