mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 04:59:30 +00:00
fix sort alphabetically
This commit is contained in:
@@ -41,8 +41,8 @@ class All extends Component
|
|||||||
{
|
{
|
||||||
if ($this->resourceClass === 'App\Models\Application' && data_get($this->resource, 'build_pack') !== 'dockercompose') {
|
if ($this->resourceClass === 'App\Models\Application' && data_get($this->resource, 'build_pack') !== 'dockercompose') {
|
||||||
$sortBy = $this->resource->settings->is_env_sorting_enabled ? 'key' : 'id';
|
$sortBy = $this->resource->settings->is_env_sorting_enabled ? 'key' : 'id';
|
||||||
$this->resource->environment_variables = $this->resource->environment_variables->sortBy($sortBy);
|
$this->resource->environment_variables = $this->resource->environment_variables->sortBy($sortBy, SORT_NATURAL|SORT_FLAG_CASE);
|
||||||
$this->resource->environment_variables_preview = $this->resource->environment_variables_preview->sortBy($sortBy);
|
$this->resource->environment_variables_preview = $this->resource->environment_variables_preview->sortBy($sortBy, SORT_NATURAL|SORT_FLAG_CASE);
|
||||||
}
|
}
|
||||||
$this->getDevView();
|
$this->getDevView();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user