Sort the MATERIAL cards on material_id