Added priority legend
Added adjusted priority order in the legend