Add our request()->root() to our debug page, implement Entry::getSortKeyAttribute()

This commit is contained in:
2025-03-16 09:03:02 +11:00
parent f667250b2c
commit 93640959db
2 changed files with 9 additions and 4 deletions

View File

@@ -133,11 +133,10 @@ class Entry extends Model
* Return a key to use for sorting
*
* @return string
* @todo This should be the DN in reverse order
*/
public function getSortKeyAttribute(): string
{
return $this->getDn();
return collect(explode(',',$this->getDn()))->reverse()->join(',');
}
/* METHODS */