orderBy('rank', 'asc'); } public function activity() { return $this->belongsTo(Activity::class, 'activity_id'); } }