improve table sorting
table update