csumb / csumb-gatsby

A @gatsbyjs version of the CSUMB website.
https://csumb.edu
MIT License
5 stars 0 forks source link

Fixes event feed images being out of order #502

Closed codywall closed 4 years ago

codywall commented 4 years ago

Fixes #496

Turns out this was a Javascript specific issue - the events were being sorted and displayed by their Moment date object, when they should have been using the numerical value of that object. For whatever reason, it still eventually figured out the value, but there was a brief hiccup which caused events to be added in at the last minute. I used the value of the next event date instead, and that fixed the issue.