Function Phalcon\Mvc\Model\Criteria::order() is deprecated

Fatal error: Uncaught Error: Call to undefined method MultiSite\Controllers\ControllerBase::detectLanguage() in /home/multisite/apps/moviesite/controllers/ItemController.php:172 Stack trace: #0 /home/multisite/apps/moviesite/controllers/ItemController.php(131): MultiSite\Moviesite\Controllers\ItemController->detectLanguageAndCheckForBadWords(Object(MultiSite\Models\Page), Object(Phalcon\Mvc\Model\Resultset\Simple), NULL) #1 [internal function]: MultiSite\Moviesite\Controllers\ItemController->indexAction('161767850850612...', 'A+Dog's+Journey') #2 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(MultiSite\Moviesite\Controllers\ItemController), 'indexAction', Array) #3 [internal function]: Phalcon\Dispatcher->dispatch() #4 /home/multisite/public/index.php(146): Phalcon\Mvc\Application->handle() #5 {main} thrown in /home/multisite/apps/moviesite/controllers/ItemController.php on line 172