climu/openstudyroom

League/archives/ allow table sorting

angelsesma opened this issue · 6 comments

helps visualize open leagues sorting by date; alphabetical order displays open leagues down at the bottom

realized sorting class exists for tables, will try to implement that way

wait, table are sortable already isn't it?
We use datatable.

thanks for the heads up!

climu commented

If you cannot sort, please include the browser you use and javascript console logs.

Firefox logs the following errors when loading /league/archives/ :

http://cdnjs.cloudflare.com/ajax/libs/moment.js/2.23.0/locale/es-mx.js” was blocked due to MIME type mismatch (“text/html”) (X-Content-Type-Options: nosniff).

Uncaught TypeError: a._locale is null

all of the other tables allow sorting without problem

raylu commented

weird, that file is missing for everything older than 2.29.0. here's 2.28.0: https://cdnjs.com/libraries/moment.js/2.28.0