Understanding sorting example on Bars from Holoviews.org

Hi There,

Could someone please help me understand how is the sorting achieved in Bar graphs in the example mentioned in Tabular_Datasets of Holoviews.org?
I see all the graphs are same even after applying the sorting mechanism.

http://holoviews.org/user_guide/Tabular_Datasets.html

hv.output(backend=‘bokeh’)
bars = hv.Bars(([‘C’, ‘A’, ‘B’, ‘D’], [2, 7, 3, 4]))
(bars +
bars.sort().relabel(‘sorted’) +
bars.sort([‘y’]).relabel(‘y-sorted’) +
bars.sort(reverse=True).relabel(‘reverse sorted’)).cols(2)

Thank you for your time!

Thanks,
Dilip

The example is currently broken, but has been fixed on master. Basically it’s sharing the axes atm, if you use shared_axes=False it will correctly show the sorted versions:

bars = hv.Bars((['C', 'A', 'D', 'B'], [2, 7, 3, 4]))
(bars +
bars.sort().relabel('sorted') +
bars.sort(['y']).relabel('y-sorted') +
bars.sort(reverse=True).relabel('reverse sorted')).opts(shared_axes=False).cols(2)

oh okay, I understand…thank you for this update!!