Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix sort alphabetically

ayntk-ai1d7c833b7c9b
diff --git a/app/Livewire/Project/Shared/EnvironmentVariable/All.php b/app/Livewire/Project/Shared/EnvironmentVariable/All.php
index 2c90427c08..10497bd0cf 100644
--- a/app/Livewire/Project/Shared/EnvironmentVariable/All.php
+++ b/app/Livewire/Project/Shared/EnvironmentVariable/All.php
@@ -41,8 +41,8 @@ class All extends Component
{
if ($this->resourceClass === 'App\Models\Application' && data_get($this->resource, 'build_pack') !== 'dockercompose') {
$sortBy = $this->resource->settings->is_env_sorting_enabled ? 'key' : 'id';
- $this->resource->environment_variables = $this->resource->environment_variables->sortBy($sortBy);
- $this->resource->environment_variables_preview = $this->resource->environment_variables_preview->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, SORT_NATURAL|SORT_FLAG_CASE);
}
$this->getDevView();
}