legends, fixed the priority sort to sort correctly, playing around with tooltips