Menu

#105 Sort subnets in order

Next_Release
open
nobody
None
1
2016-02-09
2013-03-14
No

Hi. If I go to Administration -> Subnets -> <Section XYZ="">
all the subnets are displayed but the order is a bit strange.

Sample:
0.4.0.0/16
192.168.182.0/24
192.168.176.0/24
0.15.0.0/16
192.168.14.0/24
0.26.0.0/16
172.17.188.0/24

Wouldn't be better if you sorted all the root subnets by number?
ie:
0.4.0.0/16
192.168.182.0/24
192.168.176.0/24
[...]
0.15.0.0/16
192.168.14.0/24
[...]
0.26.0.0/16
172.17.188.0/24

where [...] is the range in between. So instead of 0.15.0.0/16 after 0.4.0.0/16 you would have 0.5.0.0/16.

Discussion

  • Anonymous

    Anonymous - 2015-04-17

    This would be a good feature. I handle this by hard coding a "order by subnet" clause in the functions/functions-network.php file.
    change:
    $query = 'select * from subnets;';
    to:
    $query = 'select * from subnets order by subnet;';

     
  • Anonymous

    Anonymous - 2016-02-09
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.