protected function applyDefaultOrder(ICollection $collection) { if ($this->metadata->relationship->order !== NULL) { return $collection->orderBy($this->metadata->relationship->order[0], $this->metadata->relationship->order[1]); } else { return $collection; } }