get max sort value when copying data in products