attempt at case insensive sort of entities