Fix list-view sorting by type.