DataTables / DataTables/Plugins

IP Address sort filter not handling IPv6 addresses properly

Open
#273 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.