Fix table sorting algorithm #41
No reviewers
Labels
No Label
Bug
Feature Request
Other
Planned Feature
Planning
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: timw4mail/HummingBirdAnimeClient#41
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch ":fix-sort"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #40
@ -12,0 +9,4 @@
console.log("Comparing " + textA + " and " + textB)
if(th.classList.contains("numeric")){
arrayA = textA.replace('\n\t\t\t\t\t\tepisodes: ','').replace('-',0).split("/")
It's probably better to use the string trim method, so the whitespace doesn't matter.
For some reason string.trim() was not removing the whitespace, but limiting the replace to only
episodes:
allows parseInt to still work.