From 78989c0aadd7db0e9723739f5aeb5dbd279baaf4 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 17 Sep 2015 17:26:57 +0200 Subject: [PATCH] lib: Add SimpleQuery::clearOrder() --- library/Icinga/Data/SimpleQuery.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/library/Icinga/Data/SimpleQuery.php b/library/Icinga/Data/SimpleQuery.php index ecfaa3aaa..ac0efd543 100644 --- a/library/Icinga/Data/SimpleQuery.php +++ b/library/Icinga/Data/SimpleQuery.php @@ -382,6 +382,17 @@ class SimpleQuery implements QueryInterface, Queryable, Iterator } } + /** + * Clear the order if any + * + * @return $this + */ + public function clearOrder() + { + $this->order = array(); + return $this; + } + /** * Whether an order is set *