You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getSortedFutureANEventIDs and particularly sortIDByDate should not exist because event IDs are just URLs which can't be sorted by data that's isn't present. So sortIDByDate makes two HTTP requests every time it compares two event IDs, which can be O(n log n) times. It'll look up the full event data for the same request multiple times while sorting the array, discarding that data every time. This is slow, and particularly abusive of ActionNetwork's resources (idc about google).
Instead: get the event IDs, then look up the full event data, then sort the event data.