diff options
author | Asbjørn Sloth Tønnesen <ast@2e8.dk> | 2020-02-17 18:24:58 +0000 |
---|---|---|
committer | Asbjørn Sloth Tønnesen <ast@2e8.dk> | 2020-02-17 18:24:58 +0000 |
commit | 46676a465037c20b761b02d716fe30fdfd0a3f14 (patch) | |
tree | 91579169dc0d9be0d45fdacc4af07b1ecf083ea7 /README.rst | |
parent | a1ba1999ff0b6b9b1b2c756d678e18e9b405dec5 (diff) | |
download | lua-inet-46676a465037c20b761b02d716fe30fdfd0a3f14.tar.gz lua-inet-46676a465037c20b761b02d716fe30fdfd0a3f14.tar.xz lua-inet-46676a465037c20b761b02d716fe30fdfd0a3f14.zip |
fix cross-family sorting
Signed-off-by: Asbjørn Sloth Tønnesen <ast@2e8.dk>
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -279,7 +279,8 @@ Compares ``inet`` instances according to the sort order. inet('192.0.2.0/26') < inet('192.0.2.64/26') -- returns true inet('192.0.2.0/24') < inet('192.0.2.0/26') -- returns true inet('192.0.2.0/26') < inet('192.0.2.1/26') -- returns true - + inet('192.0.2.0/26') < inet('2001:db8::1/64') -- returns true + inet('2001:db8::1/64') < inet('192.0.2.0/26') -- returns false ``==`` and ``~=`` ~~~~~~~~~~~~~~~~~ |