replaced unused/undefined use of $_REQUEST ['order'] with $params['order'] to make 'order by' functionality work properly