List an AS's prefixes by mask length, shortest first (closes #153) #181

Merged
clawbot merged 1 commits from issue-153-prefix-length-order into next 2026-10-27 04:37:18 +01:00
1 Commits
Author SHA1 Message Date
sneak b005222e96 List an AS's prefixes by mask length, shortest first (closes #153)
check / check (push) Waiting to run
The AS page sorted its IPv4 and IPv6 prefix lists by network address,
then by mask length. It now sorts them by mask length, shortest first,
and by network address within one mask length, so a /16 comes before a
/24. The sort function is renamed from sortRoutesByNetwork to
sortRoutesByMaskLength to say so.

The handler of /api/v1/as/{asn} does not sort its lists, so it is
unchanged.

Model: opus-5-5
2026-10-27 03:29:21 +00:00