file.changeSort:after $newFile, $oldFile /site/config/config.php return [ 'hooks' => [ 'file.changeSort:after' => function ($newFile, $oldFile) { // your code goes here } ] ]