From 8a9e80acc77c4760cbff26ae8a7778102146cb71 Mon Sep 17 00:00:00 2001
From: shields <shields@tablecheck.com>
Date: Tue, 17 May 2022 01:24:42 +0900
Subject: [PATCH] Preserve ordering

---
 lib/mongoid/fields.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/mongoid/fields.rb b/lib/mongoid/fields.rb
index fd2d93e489..d178f33a27 100644
--- a/lib/mongoid/fields.rb
+++ b/lib/mongoid/fields.rb
@@ -12,12 +12,12 @@ module Mongoid
   module Fields
     extend ActiveSupport::Concern
 
-    # @deprecated Use Mongoid::Fields::FieldTypes.mapping instead
-    TYPE_MAPPINGS = ::Mongoid::Fields::FieldTypes::DEFAULT_MAPPING
-
     StringifiedSymbol = Mongoid::StringifiedSymbol
     Boolean = Mongoid::Boolean
 
+    # @deprecated Use Mongoid::Fields::FieldTypes.mapping instead
+    TYPE_MAPPINGS = ::Mongoid::Fields::FieldTypes::DEFAULT_MAPPING
+
     # Constant for all names of the _id field in a document.
     #
     # This does not include aliases of _id field.