The legend values are plotted by data order. To rearrange them to be in value order, just sort the MAPRESPDATA=…