CJuiSortable displays a list. The list items in the list can be re-adjusted by dragging and dropping. It encapsulates the JUI Sortable plug-in. The basic usage is as follows: [php] <? Php Yii: app ()-> clientScript-> registerCss ('sortable', "# sortable {list-style-type: none; margin: 0; padding: 0; width: 60% ;}# sortable li {margin: 2px; padding: 4px; border: 1px solid # e3e3e3; background: # f7f7f7} ", 'screen', CClientScript :: POS_HEAD);?> <H2> <? Php echo Yii: t ('ui', 'sortable');?> </H2> <? Php $ this-> widget ('zii. widgets. jui. CJuiSortable, array ('id' => 'sortable', 'items '=> array ('id1' => 'item 1 ', 'id2' => 'item 2', 'id3 '=> 'item 3 ',), 'options' => array ('cursor '=> 'N'-resize',),);?> <? PhpYii: app ()-> clientScript-> registerCss ('sortable', "# sortable {list-style-type: none; margin: 0; padding: 0; width: 60% ;}# sortable li {margin: 2px; padding: 4px; border: 1px solid # e3e3e3; background: # f7f7f7} ", 'screen', CClientScript :: POS_HEAD);?> <H2> <? Php echo Yii: t ('ui', 'sortable');?> </H2> <? Php $ this-> widget ('zii. widgets. jui. CJuiSortable, array ('id' => 'sortable', 'items '=> array ('id1' => 'item 1 ', 'id2' => 'item 2', 'id3 '=> 'item 3 ',), 'options' => array ('cursor '=> 'N'-resize',),);?>