nat.Sort(l.Ports, func(ip, jp nat.Port) bool {
        // If the two ports have the same number, tcp takes priority
        // Sort in desc order
        return ip.Int() < jp.Int() || (ip.Int() == jp.Int() && strings.ToLower(ip.Proto()) == "tcp")
    })