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

Adds alphanumeric sorting reader option #218

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mlangens
Copy link

A little clunkily written, but reliably gets the job done. Any input is welcome!

}

//extract display text
a = $(a[attr.toString()]).text();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop the toString() on the attr names, since names are always strings anyway regardless of using integers, etc to refer to them.

@JangoSteve
Copy link
Member

Overall, this functionality looks good, though it's difficult to understand exactly what's going on. If you could comment each of the non-obvious lines to say briefly what they do (or maybe provide an example of a and b and how each line would return in that case).

Also, fix formatting to be a consistent 2-space indentation throughout the method.

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

Successfully merging this pull request may close these issues.

2 participants