Sort colors by frequency