14                                         array( 
'oxtitle',   
'oxselectlist', 1, 1, 0 ),
 
   15                                         array( 
'oxsort',    
'oxobject2selectlist', 1, 0, 0 ),
 
   16                                         array( 
'oxident',   
'oxselectlist', 0, 0, 0 ),
 
   17                                         array( 
'oxvaldesc', 
'oxselectlist', 0, 0, 0 ),
 
   18                                         array( 
'oxid',      
'oxobject2selectlist', 0, 0, 1 )
 
   32         $sQAdd = 
" from $sSelTable left join oxobject2selectlist on oxobject2selectlist.oxselnid = $sSelTable.oxid where oxobjectid = " . 
oxDb::getDb()->quote($sArtId ) . 
"  ";
 
   44         return 'order by oxobject2selectlist.oxsort ';
 
   55         $sSelect = 
"select * from oxobject2selectlist where oxobjectid= " . 
oxDb::getDb()->quote( $sSelId ) . 
" order by oxsort";
 
   57         $oList = 
oxNew( 
"oxlist" );
 
   58         $oList->init( 
"oxbase", 
"oxobject2selectlist" );
 
   59         $oList->selectString( $sSelect );
 
   64         foreach ( $oList as $sKey => $oSel ) {
 
   66             if ( $oSel->oxobject2selectlist__oxsort->value != $iSelCnt ) {
 
   67                 $oSel->oxobject2selectlist__oxsort->setValue($iSelCnt);
 
   72             $aIdx2Id[$iSelCnt] = $sKey;
 
   79             if ( isset( $aIdx2Id[$iDir] ) ) {
 
   81                 $oDir1 = $oList->offsetGet( $aIdx2Id[$iDir] );
 
   82                 $oDir2 = $oList->offsetGet( $aIdx2Id[$iKey] );
 
   84                 $iCopy = $oDir1->oxobject2selectlist__oxsort->value;
 
   85                 $oDir1->oxobject2selectlist__oxsort->setValue($oDir2->oxobject2selectlist__oxsort->value);
 
   86                 $oDir2->oxobject2selectlist__oxsort->setValue($iCopy);
 
   96         $sCountQ = 
'select count( * ) ' . $sQAdd;