Type groups sorting by ID