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

Submissions table First Name sorting by id instead of First name #698

Open
x-iy opened this issue Oct 10, 2023 · 0 comments
Open

Submissions table First Name sorting by id instead of First name #698

x-iy opened this issue Oct 10, 2023 · 0 comments

Comments

@x-iy
Copy link

x-iy commented Oct 10, 2023

On the submissions table, clicking First Name sort actually sorts by id instead of alphabetically due to the First Name column including html for the user link:

"aaData": [
        [
            76106,
            "<input class=\"inbox_checkbox\" type=\"checkbox\" value=\"2222222222\" name=\"check_2222222222\" \/>",
            "Lastname",
            "<a href=\"https:\/\/site.com\/user\/view.php?id=333333&amp;course=11111\">Firstname Lastname<\/a>",
             ...
        ].
        ...

The sort will be on the id=333333 instead of 'Firstname Lastname' as that is the first difference.

Last Name sort works correctly as there is no html included.

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

No branches or pull requests

1 participant