Fixes issue with off by one error when incrementing sort position field