Card #92 sort by type fix