Fix incorrect ordering is discrete color keys.