As I answered the previous thread and the code I provided.
That mostly because when you sort, the element gets deleted from the DOM. Thus, all event attached to it will be removed.
Generally, in such a case you should listen to the click event on the document element or any parent that doesn't get removed when sorting.