Query output sorted by time and contain class infos.