sort colors when generating scheme, fixes #61