Check for negative return

This commit is contained in:
Clicky
2014-05-23 11:46:36 -07:00
parent 1fe9132761
commit f9ede4bae9
@@ -44,7 +44,7 @@ function (angular, _, kbn) {
var orderIndex = lowerCaseQueryElements.indexOf("order");
additionalGroups = lowerCaseQueryElements.slice(groupByIndex + 1,
orderIndex ? orderIndex : lowerCaseQueryElements.length).filter(function(w) {
orderIndex >= 0 ? orderIndex : lowerCaseQueryElements.length).filter(function(w) {
return ! /time\(/.test(w);
});
additionalGroups = _.map(additionalGroups, function(w) {