I have copy/pasted sample code for a custom sort. Unfortunately, what I am seeing requires the user to click twice before they see any results.
I don’t mean “double-click”, but two individual clicks. The directional indicators switch with each click, but the actual sort is only affected every other click: