Closed Bug 276474 Opened 20 years ago Closed 8 years ago

Sorting function that handles IP addresses + domain names

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 282220

People

(Reporter: benc, Unassigned)

References

(Blocks 3 open bugs)

Details

Attachments

(1 file)

Many components sort by domain, but they treat the hostname/IP as a string. What
is needed, is a sort function that treats domains as hierarchically sorted, and
IP addresses as numerically sorted.

A centralized function that supported a couple flags would probably better than
putting duplicate code in each module.
Blocks: 143166, 143472, 194878
Blocks: 142179
Assignee: darin → nobody
QA Contact: benc → networking
Attached file version 0.1 IPv4 only
A preliminary attempt at solving the problem.  Only affects IPv4 addresses.  IPv6 address will pass through untouched and sorted alphanumerically.
H Martins wrote equivalent code that it attached to bug 282220.
I submitted an attachment to bug 282220 almost two years ago that I think solves this for IPv4. It was rejected because it had no comments, when the original file had not a single comment line before.  I then submitted almost the same version for review, but fully commented, and haven't heard anything since.

Every time I get updated I have to manually patch browser.jar, which is kind of a a pain. And I don't really understand the meaning of this bug depending on 282220.

I also have an IPv6 version almost ready ....
Blocks: 582158
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: