diff --git a/resources/views/livewire/project/edit.blade.php b/resources/views/livewire/project/edit.blade.php
index 56806d287..c8fd27f9c 100644
--- a/resources/views/livewire/project/edit.blade.php
+++ b/resources/views/livewire/project/edit.blade.php
@@ -27,7 +27,7 @@
             helper="More info here.">
     
     
-        @forelse ($project->environment_variables->sort()->sortBy('real_value') as $env)
+        @forelse ($project->environment_variables->sort()->sortBy('key') as $env)
             
         @empty
diff --git a/resources/views/livewire/project/environment-edit.blade.php b/resources/views/livewire/project/environment-edit.blade.php
index 5418c5036..02fbb1c69 100644
--- a/resources/views/livewire/project/environment-edit.blade.php
+++ b/resources/views/livewire/project/environment-edit.blade.php
@@ -52,7 +52,7 @@
             helper="More info 
here.">
     
 
     
-        @forelse ($environment->environment_variables->sort()->sortBy('real_value') as $env)
+        @forelse ($environment->environment_variables->sort()->sortBy('key') as $env)
             
         @empty
diff --git a/resources/views/livewire/project/shared/environment-variable/all.blade.php b/resources/views/livewire/project/shared/environment-variable/all.blade.php
index 951f53e61..d698b6350 100644
--- a/resources/views/livewire/project/shared/environment-variable/all.blade.php
+++ b/resources/views/livewire/project/shared/environment-variable/all.blade.php
@@ -16,7 +16,7 @@
         @endif
     
     @if ($view === 'normal')
-        @forelse ($resource->environment_variables->sort()->sortBy('real_value') as $env)
+        @forelse ($resource->environment_variables->sort()->sortBy('key') as $env)
             
         @empty
@@ -27,7 +27,7 @@
                 Preview Deployments
                 Environment (secrets) variables for Preview Deployments.
             
-            @foreach ($resource->environment_variables_preview->sort()->sortBy('real_value') as $env)
+            @foreach ($resource->environment_variables_preview->sort()->sortBy('key') as $env)
                 
             @endforeach
diff --git a/resources/views/livewire/team-shared-variables-index.blade.php b/resources/views/livewire/team-shared-variables-index.blade.php
index 640913f1f..9f8a709f0 100644
--- a/resources/views/livewire/team-shared-variables-index.blade.php
+++ b/resources/views/livewire/team-shared-variables-index.blade.php
@@ -12,7 +12,7 @@
     
 
     
-        @forelse ($team->environment_variables->sort()->sortBy('real_value') as $env)
+        @forelse ($team->environment_variables->sort()->sortBy('key') as $env)
             
         @empty