Fixed sorting by network address/gateway in admin (incl. migration).
Merge pull request #925 from xor-xor/fix_1730

Fixed sorting by network address/gateway in admin (incl. migration).