Describe the bug
Sorting of series is not working properly in legend
To Reproduce
Steps to reproduce the behavior:
- Create a chart (use the TSVB as an example)
- Group it by terms (select small amount of terms, that needed for rendering the same labels)
- Choose an another type of sorting (
descending -> ascending)
- See that colors of series shuffled in different way in the legend, but labels stayed on the same position
Expected behavior
Labels should also change its position
Screenshots

Version (please complete the following information):
- OS: Windows 10
- Browser Chrome 73
- Elastic Charts: 3.4.4
Additional context
Add any other context about the problem here.
Errors in browser console
If applicable, add any console error.
Kibana Cross Issues
Add any Kibana related issues here.
Checklist
Describe the bug
Sorting of series is not working properly in legend
To Reproduce
Steps to reproduce the behavior:
descending->ascending)Expected behavior
Labels should also change its position
Screenshots

Version (please complete the following information):
Additional context
Add any other context about the problem here.
Errors in browser console
If applicable, add any console error.
Kibana Cross Issues
Add any Kibana related issues here.
Checklist
Kibana Cross Issueslistkibana cross issuetag is associated to the issue if any kibana cross issue is present