Skip to content

Commit

Permalink
fix(VCalendar): timed event sorting (#7806)
Browse files Browse the repository at this point in the history
Use cases in #7777 highlighted sorting issues with timed events. Now If something is offset it will be placed over a column, instead of the opposite.

fixes #7777
  • Loading branch information
ClickerMonkey authored and johnleider committed Jul 30, 2019
1 parent 2de4e72 commit e38a763
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ export default CalendarBase.extend({
visual.offset = getOffset(visual, visuals)
})
}
visuals.sort((a, b) => (a.column - b.column) || (a.offset - b.offset))
visuals.sort((a, b) => (a.offset - b.offset) || (a.column - b.column))
return visuals
}

Expand Down

0 comments on commit e38a763

Please sign in to comment.