Save position of categories when they are moved by drag and drop