0

I have a category table that use Hierarchical structure with right and left field.

What should I do if I want to reorder two fields and how should I manage left and right field values?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Hamid
  • 141
  • 1
  • 2
  • 7

1 Answers1

0

Since you're using left and right, you're probably modelling this as a Nested Set. The top answer to this question about nested sets has a nice method for moving nodes.

Community
  • 1
  • 1
Simon
  • 1,980
  • 14
  • 21