Fixed Chrome bug with dye sort default value

Replaced `dyes = $...` with a check for its type at the start of the function.