Lichess4545 / heltour

Chess tournament management software for the Lichess4545 league
https://www.lichess4545.com/
MIT License
46 stars 38 forks source link

Issue 58 - Allow users to sort standings and rosters #504

Closed MattMaginniss closed 1 year ago

MattMaginniss commented 1 year ago

Issues: #58, #288

Created a sort function that allows users to choose how they want to sort specified tables.

It doesn't look great on mobile but even before this the standings don't look great on mobile. Can be worked on in the future.

How to add sort functionality:

What is sortable from this PR? Rosters:

4545 Standings: (every field)

Lonewolf Standings:

4545 Final Table Default Sort:

immagine

4545 Roster Sorted by Average Rating:

immagine

4545 Table Sorted by Game Points:

immagine

I am using pure CSS for the sort icons in the table headers:

immagine immagine

Unicode: \25B2 and \25BC

Oh and since it's pure CSS unicode text, the font flips for light and dark:

immagine immagine