WordPress / wp20.wordpress.net

Celebrating 20 years of WordPress
5 stars 1 forks source link

Sort events by date. #79

Closed StevenDufresne closed 1 year ago

StevenDufresne commented 1 year ago

I don't understand the current sort, I imagine we should just sort by date?

iandunn commented 1 year ago

They are chronological in the raw data, and display that way on mobile:

https://github.com/WordPress/wp20.wordpress.net/blob/560a45fa7a24d1af9c95ef343e32cb0f78948857/wp-content/plugins/wp20-meetup-events/wp20-meetup-events.php#L252

Screenshot 2023-04-14 at 7 40 22 AM

On desktop we're using CSS columns, which causes them to sort left-to-right, rather than top to bottom.

Screenshot 2023-04-14 at 7 42 53 AM

I'm not sure if either method is more intuitive than the other, I can see it both ways. What do you think?

StevenDufresne commented 1 year ago

I guess I'm just confused by the last event:

Screenshot 2023-04-17 at 10 07 09 AM

I would expect may 9th to be in the first row.

iandunn commented 1 year ago

Oh, good catch! Something must be wrong there, I'll take a look.