Thanks,
But if I map the attributes as a list, and add an index for the sort_order, do I just get all of them in a list, then shuffle, delete, move them in the list, then do a saveUpdate()? on the List of data?
Not sure how I can achieve this. These lists are owned by an entity, also, and these attributes have an entity of course, but have a foreign key in the attribute table. So I guess, I could grab the parent, which gets the list of attributes then shuffle the attributes and then do a saveUpdate() on the primary key entity?
Let me know if this makes sense and would work or not.
Thanks,
group
ID PK
name
sort_order
attribute
ID PK
group_id FK (to grioup)
sort_order
name
attribute has a many to one to group.
or
group has a one to many with attribute
|