fix(container): sort containers alphabetically by name in ExecuteContainerCommand and update filtering in Terminal Index
This commit is contained in:
@@ -132,6 +132,12 @@ class ExecuteContainerCommand extends Component
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Sort containers alphabetically by name
|
||||
$this->containers = $this->containers->sortBy(function ($container) {
|
||||
return data_get($container, 'container.Names');
|
||||
});
|
||||
|
||||
if ($this->containers->count() === 1) {
|
||||
$this->selected_container = data_get($this->containers->first(), 'container.Names');
|
||||
}
|
||||
|
@@ -59,7 +59,7 @@ class Index extends Component
|
||||
|
||||
return null;
|
||||
})->filter();
|
||||
});
|
||||
})->sortBy('name');
|
||||
}
|
||||
|
||||
public function updatedSelectedUuid()
|
||||
|
Reference in New Issue
Block a user