Updated your example attached Summary table example.ods
Column H is helper column to select unique list from type column.
Data validity chooses the value from the list of unique types in the yellow cell. Validity list is set to sort ascending order.
Column F is helper column to select rows from class column to match the type selected by the yellow cell.
Formula in A2 to D22 uses the row number in helper column F to show the filtered data.
Copy the formula further down the sheet if needed.
It runs a bit slow because I use full length of columns in some formula, example $H:$H, if you know the possible size of your data you could use for example $H$1:$H$100 for 100 rows.