def <=>(other_uuid)
check = self.time_low <=> other_uuid.time_low
return check if check != 0
check = self.time_mid <=> other_uuid.time_mid
return check if check != 0
check = self.time_hi_and_version <=> other_uuid.time_hi_and_version
return check if check != 0
check = self.clock_seq_hi_and_reserved <=>
other_uuid.clock_seq_hi_and_reserved
return check if check != 0
check = self.clock_seq_low <=> other_uuid.clock_seq_low
return check if check != 0
for i in 0..5
if (self.nodes[i] < other_uuid.nodes[i])
return -1
end
if (self.nodes[i] > other_uuid.nodes[i])
return 1
end
end
return 0
end