Black Lives Matter. Please consider donating to Black Girls Code today.

Let user control the arrange on a bar chart

Building some simple bar charts for my users where there are going to be many bars, ie up to 50. The end users are mostly interested in the top ten and bottom ten. I typically auto zoom to only show about 15. Is there any easy way to allow the users to flip the sort from ascending to descending and vice versa without adding an additional input to control this? Was hoping this was a simple clock function I was unaware of. Open to creative ideas to get this done with one click. Thanks!