WIP sorting openings by date for displaying
Changed openings search

If an opening end date is in the next day, opening divides on two
openings: from start date to end of the day and from start of the next
day to end date.