From a44fff3e815f43f45e9e822f637ecc8b00016962 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Wed, 4 May 2016 12:42:51 +0200 Subject: [PATCH] Fix IP address sorting IP addresses in IP ranges are now sorted correctly by their numerical value. --- jandd/sphinxext/ip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jandd/sphinxext/ip.py b/jandd/sphinxext/ip.py index 6ac0a88..d66a8ec 100644 --- a/jandd/sphinxext/ip.py +++ b/jandd/sphinxext/ip.py @@ -231,7 +231,7 @@ def process_ips(app, doctree): def sort_ip_info(item): - return item['ip'] + return Network(item['ip']).ip def process_ip_nodes(app, doctree, fromdocname):