FIX: Order UserFields by position, by default (#8176)

FIX: Order UserFields by position, by default (#8176)

  • FIX: site user_fields sorted by position

  • FIX: Sort UserField by position for Site

diff --git a/app/models/site.rb b/app/models/site.rb
index 3a30f02..c7330e1 100644
--- a/app/models/site.rb
+++ b/app/models/site.rb
@@ -25,7 +25,7 @@ class Site
   end
 
   def user_fields
-    UserField.all
+    UserField.order(:position).all
   end
 
   def categories

GitHub sha: d710316e