sort properties
Don't reference color variables before they're defined