class DatesViewModel extends AbstractPublicContentViewModel {

    public List<DateViewModel> getSortedEvents() {
        List<DateViewModel> listToBeSorted = getPublicContentDates();
        List<DateViewModel> emptyDates = new ArrayList();
        List<DateViewModel> sortedList = new ArrayList();

        listToBeSorted.stream()
                .filter(dateViewModel -> null != dateViewModel.getDateTime())
                .sorted(Comparator.comparing(DateViewModel::getDateTime))
                .forEach(dateViewModel -> sortedList.add(dateViewModel));

        listToBeSorted.stream()
                .filter(dateViewModel -> null == dateViewModel.getDateTime())
                .forEach(dateViewModel -> emptyDates.add(dateViewModel));

        sortedList.addAll(emptyDates);

        return sortedList;
    }

}