I am trying to make the sorting work in the following list.
In order to replicate, please click in the highlighted button.
Then click on any item to sort, note how the listed get sorted. Also note that increase and decrease does not work as expected.
Then click again in the button and notice that the sorting get reversed. I expected to see an unsorting behaviour not a reverse sorting behaviour.