making all stat tables sortable