better legend sort2