private List<City> getCityInfo(AbstractDao dao, List<LinkDirectionCity> links) throws DaoException {
        List<City> list = new ArrayList<>();
        for (LinkDirectionCity link : links) {
            Criteria crit = new Criteria();
            crit.addParam(DAO_ID_CITY, link.getIdCity());
            List<City> cities = dao.findCities(crit);
            if (cities != null) {
                list.addAll(cities);
            }
        }
        City.NameComparator comparator = new City.NameComparator();
        Collections.sort(list, comparator);
        return list;
    }