Convert type to boolean for easy sort