# File lib/ipaddress/ipv4.rb, line 511 def <=>(oth) return prefix <=> oth.prefix if to_u32 == oth.to_u32 to_u32 <=> oth.to_u32 end