Code Duplication    Length = 5-5 lines in 2 locations

lib/stores/modules/mysql_compiler.php 1 location

@@ 357-361 (lines=5) @@
354
		}
355
356
		if ($this->orderby_s) {
357
			if ($this->skipDefaultOrderBy) {
358
				$orderby = " order by $this->orderby_s ";
359
			} else {
360
				$orderby = " order by $this->orderby_s, $nodes.parent ASC, $nodes.priority DESC, $nodes.path ASC ";
361
			}
362
		} else if (!$this->skipDefaultOrderBy) {
363
			$orderby = " order by $nodes.parent ASC, $nodes.priority DESC, $nodes.path ASC ";
364
		}

lib/stores/modules/postgresql_compiler.php 1 location

@@ 331-335 (lines=5) @@
328
		}
329
		$order = '';
330
		if ($this->orderby_s) {
331
			if ($this->skipDefaultOrderBy) {
332
				$order .= "order by $this->orderby_s";
333
			} else {
334
				$order .= "order by $this->orderby_s, $nodes.parent ASC, $nodes.priority DESC, $nodes.path ASC ";
335
			}
336
		} else if (!$this->skipDefaultOrderBy) {
337
			$order .= "order by $nodes.parent ASC, $nodes.priority DESC, $nodes.path ASC ";
338
		}