Error ordering pie chart query

I created a query where it returns the evaluation of an employee from 5 to 1 descending, the query in table view mode is returning correctly, but when we switch to pizza, it is ordering incorrectly

what version of grafana are you using?

Legend sorting is currently not available in the newest pie chart version, but it is on the backlog :+1:

Hello, my version is Grafana v8.1.2 thanks for the feedback