Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
Merge a4732a7 into 050c9ef
Browse files Browse the repository at this point in the history
  • Loading branch information
teodor-pripoae committed Jan 23, 2015
2 parents 050c9ef + a4732a7 commit e0d42d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cql/time_uuid.rb
Expand Up @@ -18,8 +18,10 @@ def to_time
end

def <=>(other)
return unless other.respond_to? :value
c = self.value <=> other.value
return c if c == 0
return unless other.respond_to? :time_bits
self.time_bits <=> other.time_bits
end

Expand Down

0 comments on commit e0d42d1

Please sign in to comment.