DataTables / DataTables/Plugins
IP Address sort filter not handling IPv6 addresses properly
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
The IP Address sort filter is wonderful to have, but it doesn't always get IPv6 addresses correct. For example a table like this (in proper order):
::baaa:aaaa:1
::baaa:aaaa:2
::baaa:aaaa:3
::baaa:aaaa:10
::baaa:aaaa:11
will be sorted in this way:
::baaa:aaaa:1
::baaa:aaaa:10
::baaa:aaaa:11
::baaa:aaaa:2
::baaa:aaaa:3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the DataTables IP Address sort filter entry point and reproduce the issue using the IPv6 values shown in the report. The work is done when those addresses sort numerically in the listed order and the existing sorting behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100