revised sorting of colormap