I am trying to set an EvenListener function on clicking a button but it seems to not change anything. What I am trying to do is order array objects based on money value from ascending order and then descending when the button is clicked.
I do not get an error so I assume everything works but I feel like it gets overriden by the same function which orders items in ascending direction.
Here is a snippet: