def sort_subnets_by_cidr_prefix(subnets)
      subnets.sort_by.with_index { |sbn, i| [subnet_address_prefix(sbn).split("/")[1].to_i, i] }
    end
def sort_subnets_by_cidr_prefix(subnets)
      subnets.sort_by.with_index { |sbn, i| [subnet_address_prefix(sbn).split("/")[1].to_i, i] }
    end
sort existing subnets in ascending order based on their cidr prefix or
 netmask to have subnets with larger networks on the top