diff --git a/inc/parser/handler.php b/inc/parser/handler.php index d96a01a60aa47982a26b0f65c602393485e1fa75..731c1982820d10655ed4f1fc7338a44bfda8628c 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -526,6 +526,7 @@ class Doku_Handler { $p['author'] = (preg_match('/\b(by|author)/',$params)); $p['date'] = (preg_match('/\b(date)/',$params)); $p['details'] = (preg_match('/\b(desc|detail)/',$params)); + $p['nosort'] = (preg_match('/\b(nosort)\b/',$params)); if (preg_match('/\b(\d+)([dhm])\b/',$params,$match)) { $period = array('d' => 86400, 'h' => 3600, 'm' => 60); diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index f1703111e67b9f5eba849e87dcfca9a7deaadfbb..c68d206be449b07d2a957a695371eba727d5573f 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -1178,6 +1178,8 @@ class Doku_Renderer_xhtml extends Doku_Renderer { error_reporting($elvl); } + if($params['nosort']) $feed->enable_order_by_date(false); + //decide on start and end if($params['reverse']) { $mod = -1;