```ruby
def sort(activities)
  activities.sort_by { |a| a.activity_time.blank? ? Float::INFINITY : a.activity_time.delete(':').to_i }
end
```