Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting by "Modified" in "All Pages" should be chronological #133

Open
salmanfs815 opened this issue Dec 6, 2019 · 1 comment
Open

Sorting by "Modified" in "All Pages" should be chronological #133

salmanfs815 opened this issue Dec 6, 2019 · 1 comment

Comments

@salmanfs815
Copy link

Currently (as per running instance at coursys.sfu.ca), dates in the "Modified" column of the table in the "All Pages" view are sorted in lexicographical order. This can be seen in the image below where the dates are sorted in ascending order.

image

@rlintott
Copy link

rlintott commented Dec 18, 2019

<script nonce="{{ CSP_NONCE }}">
$(document).ready(function() {
  $.fn.dataTable.moment("dddd MMM. D YYYY, HH:mm");
  $('#pagestable').dataTable( {
    'bPaginate': false,
    'bInfo': false,
    'bLengthChange': false,
    "bJQueryUI": true,
  } );
} );
</script>

I think putting this in the all_pages.html file could fix it. Taken from

https://datatables.net/blog/2014-12-18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants