Sort events by time
This commit is contained in:
parent
611277ef67
commit
4babd84439
2 changed files with 5 additions and 1 deletions
|
|
@ -288,6 +288,10 @@ class Event < ApplicationRecord
|
|||
program.conference
|
||||
end
|
||||
|
||||
def <=>(other)
|
||||
time <=> other.time
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue