[colorLib] Sort paints by decreasing number of layers when encoding

Fixes https://github.com/fonttools/fonttools/issues/3250
2 files changed