fixed Chrome sorting bug for dye sorting by name

Array.sort expects an integer to be returned, not a boolean