diff --git a/reference/mongo/mongomaxkey.xml b/reference/mongo/mongomaxkey.xml
index e395e460df..b83297aec1 100644
--- a/reference/mongo/mongomaxkey.xml
+++ b/reference/mongo/mongomaxkey.xml
@@ -12,16 +12,23 @@
&reftitle.intro;
- MongoMaxKey is a special type used by the database
- that evaluates to greater than any other type. Thus, if a query is sorted
- by a given field in ascending order, any document with a
+ MongoMaxKey is an special type used by the database
+ that compares greather than all other possible BSON values. Thus, if a query
+ is sorted by a given field in ascending order, any document with a
MongoMaxKey as its value will be returned last.
MongoMaxKey has no associated fields, methods, or
- constants. It is merely the "largest" thing that can be inserted into the
+ constants. It is merely the "greatest" value that can be represented in the
database.
+
+
+ MongoMaxKey is used internally by MongoDB for
+ indexing and sharding. There is generally no reason to use this class in
+ an application.
+
+
@@ -50,21 +57,28 @@
insert(array("task" => "dishes", "do by" => new MongoMaxKey));
-$collection->insert(array("task" => "staff meeting", "do by" => new MongoDate(strtotime("+4 days"))));
+$collection->insert(array("task" => "dishes", "doBy" => new MongoMaxKey));
+$collection->insert(array("task" => "staff meeting", "doBy" => new MongoDate(strtotime("+4 days"))));
-$cursor = $collection->find()->sort(array("do by" => 1));
+$cursor = $collection->find()->sort(array("doBy" => 1));
?>
]]>
- The cursor will contain the staff meeting document, then the dishes
- document. The dishes document will always be returned last, regardless of
+ The cursor will return the staff meeting document followed by the dishes
+ document. The dishes document will always be returned last, regardless of
what else is added to the collection (unless other documents are added with
- MongoMaxKey in the "do by" field).
+ MongoMaxKey in their "doBy" field).
+
+
+ &reftitle.seealso;
+
+ MongoMinKey
+
+
diff --git a/reference/mongo/mongominkey.xml b/reference/mongo/mongominkey.xml
index c67d4d293c..dcc89d2312 100644
--- a/reference/mongo/mongominkey.xml
+++ b/reference/mongo/mongominkey.xml
@@ -12,16 +12,23 @@
&reftitle.intro;
- MongoMinKey is a special type used by the database
- that evaluates to less than any other type. Thus, if a query is sorted by a
- given field in ascending order, any document with a
+ MongoMinKey is an special type used by the database
+ that compares less than all other possible BSON values. Thus, if a query is
+ sorted by a given field in ascending order, any document with a
MongoMinKey as its value will be returned first.
MongoMinKey has no associated fields, methods, or
- constants. It is merely the "smallest" thing that can be inserted into the
+ constants. It is merely the "smallest" value that can be represented in the
database.
+
+
+ MongoMinKey is used internally by MongoDB for
+ indexing and sharding. There is generally no reason to use this class in
+ an application.
+
+
@@ -50,21 +57,28 @@
insert(array("task" => "lunch", "do by" => new MongoMinKey));
-$collection->insert(array("task" => "staff meeting", "do by" => new MongoDate(strtotime("+4 days"))));
+$collection->insert(array("task" => "lunch", "doBy" => new MongoMinKey));
+$collection->insert(array("task" => "staff meeting", "doBy" => new MongoDate(strtotime("+4 days"))));
-$cursor = $collection->find()->sort(array("do by" => 1));
+$cursor = $collection->find()->sort(array("doBy" => 1));
?>
]]>
- The cursor will contain the lunch document, then the staff meeting document.
- The lunch document will always be returned first, regardless of what else
- is added to the collection (unless other documents are added with
- MongoMinKey in the "do by" field).
+ The cursor will return the lunch document followed by the staff meeting
+ document. The lunch document will always be returned first, regardless of
+ what else is added to the collection (unless other documents are added with
+ MongoMinKey in their "doBy" field).
+
+
+ &reftitle.seealso;
+
+ MongoMaxKey
+
+