public function scopeSort($query, $direction = "asc") { return $query->orderBy('sort', $direction); }