group datas by tome