Permalink
Browse files

ordering the latest pastes with latest first

  • Loading branch information...
1 parent f225237 commit 7e3f82bc92c478cf4b823735ae5c70ca69cf43b3 @alkemann alkemann committed Oct 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 controllers/PastesController.php
View
2 controllers/PastesController.php
@@ -23,7 +23,7 @@ class PastesController extends \lithium\action\Controller {
* @return array
*/
public function index() {
- return array('latest' => Paste::latest(array('limit' => 10)));
+ return array('latest' => Paste::latest(array('limit' => 10, 'descending' => 'true')));
}
/**

0 comments on commit 7e3f82b

Please sign in to comment.