$criteria = new Criteria(); $criteria->addDescendingOrderByColumn('date');
$criteria = new Criteria(); $criteria->addAscendingOrderByColumn('category'); $criteria->addDescendingOrderByColumn('price');In this example, we are sorting by two columns. The first column is 'category' in ascending order and the second column is 'price' in descending order. These code examples are part of the Propel ORM which is a package library that provides an Object-Relational Mapping (ORM) framework for PHP.