Python 3 fix for ColorSpiral test: sort dictionary entries