jQuery ui sortables bug fix

when sorting items by reordering columns, categories don't get updated.
categories array is out of sync. this commit fixes that issue.