title: sorting by text field on visual OpenSearch dashboard
body: <p>need to sort by &quot;text field&quot; on pie chart.
  <a href="https://i.stack.imgur.com/NzYWZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NzYWZ.png" alt="enter image description here" /></a></p>
  <p>But this is not work. how i can sort by this visual using &quot;category&quot;</p>