Fix error when sorting by Item Type column (since dd477e15b8)