php - How to reorder data in a tree stored using the nested set model? -


i have table following structure

create table `nested_set` (     `id` int(11) unsigned not null auto_increment,     `lft` int(11) not null,     `rgt` int(11) not null,     `id_parent` int(11) null,     `name` varchar(255) null,     primary key (`id`),     key `fk_nested_sets` (`id_parent`) ) 

i want preserve level structure reorder alphabetically nodes within each node. how can achieve using mysql or (php , mysql)?

(id_parent added model can easy move nodes or down)


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -