Just add this widget inside the refreshcontainer of the tablerecords after a "sort" and you are done.