public function onSortAttachments()
    {
        if ($sortData = post('sortOrder')) {
            $ids = array_keys($sortData);
            $orders = array_values($sortData);

            $fileModel = $this->getRelationModel();
            $fileModel->setSortableOrder($ids, $orders);
        }
    }
public function onSortAttachments()
    {
        if ($sortData = post('sortOrder')) {
            $ids = array_keys($sortData);
            $orders = array_values($sortData);

            $fileModel = $this->getRelationModel();
            $fileModel->setSortableOrder($ids, $orders);
        }
    }
public function onSortAttachments ( ) { if ( $ sortData = post ( 'sortOrder' ) ) { $ ids = array_keys ( $ sortData ) ; $ orders = array_values ( $ sortData ) ; $ fileModel = $ this -> getRelationModel ( ) ; $ fileModel -> setSortableOrder ( $ ids , $ orders ) ; } }
Sorts file attachments.
Sorts file attachments .