diff --git a/docs/client/api.js b/docs/client/api.js
index 283ff58082..aa0a1aa3ed 100644
--- a/docs/client/api.js
+++ b/docs/client/api.js
@@ -371,6 +371,62 @@ Template.api.findone = {
]
};
+Template.api.insert = {
+ id: "insert",
+ name: "collection.insert(doc, [callback])",
+ locus: "Anywhere",
+ descr: ["Insert a document in the collection. Returns its unique _id."],
+ args: [
+ {name: "doc",
+ type: "Object",
+ descr: "The document to insert. Should not yet have an _id attribute."},
+ {name: "callback",
+ type: "Function",
+ descr: "Optional. If present, called with an error object as the first argument and, if no error, the _id as the second."}
+ ]
+};
+
+Template.api.update = {
+ id: "update",
+ name: "collection.update(selector, modifier, [options], [callback])",
+ locus: "Anywhere",
+ descr: ["Modify one or more documents in the collection"],
+ args: [
+ {name: "selector",
+ type: "Object: Mongo selector, or String",
+ type_link: "selectors",
+ descr: "Specifies which documents to modify"},
+ {name: "modifier",
+ type: "Object: Mongo modifier",
+ type_link: "modifiers",
+ descr: "Specifies how to modify the documents"},
+ {name: "callback",
+ type: "Function",
+ descr: "Optional. If present, called with an error object as its argument."}
+ ],
+ options: [
+ {name: "multi",
+ type: "Boolean",
+ descr: "True to modify all matching documents; false to only modify one of the matching documents (the default)."}
+ ]
+};
+
+Template.api.remove = {
+ id: "remove",
+ name: "collection.remove(selector, [callback])",
+ locus: "Anywhere",
+ descr: ["Remove documents from the collection"],
+ args: [
+ {name: "selector",
+ type: "Object: Mongo selector, or String",
+ type_link: "selectors",
+ descr: "Specifies which documents to remove"},
+ {name: "callback",
+ type: "Function",
+ descr: "Optional. If present, called with an error object as its argument."}
+ ]
+};
+
Template.api.cursor_count = {
id: "count",
name: "cursor.count()",
@@ -429,62 +485,6 @@ Template.api.cursor_observe = {
]
};
-Template.api.insert = {
- id: "insert",
- name: "collection.insert(doc, [callback])",
- locus: "Anywhere",
- descr: ["Insert a document in the collection. Returns its unique _id."],
- args: [
- {name: "doc",
- type: "Object",
- descr: "The document to insert. Should not yet have an _id attribute."},
- {name: "callback",
- type: "Function",
- descr: "Optional. If present, called with an error object as the first argument and, if no error, the _id as the second."}
- ]
-};
-
-Template.api.update = {
- id: "update",
- name: "collection.update(selector, modifier, [options], [callback])",
- locus: "Anywhere",
- descr: ["Modify one or more documents in the collection"],
- args: [
- {name: "selector",
- type: "Object: Mongo selector, or String",
- type_link: "selectors",
- descr: "Specifies which documents to modify"},
- {name: "modifier",
- type: "Object: Mongo modifier",
- type_link: "modifiers",
- descr: "Specifies how to modify the documents"},
- {name: "callback",
- type: "Function",
- descr: "Optional. If present, called with an error object as its argument."}
- ],
- options: [
- {name: "multi",
- type: "Boolean",
- descr: "True to modify all matching documents; false to only modify one of the matching documents (the default)."}
- ]
-};
-
-Template.api.remove = {
- id: "remove",
- name: "collection.remove(selector, [callback])",
- locus: "Anywhere",
- descr: ["Remove documents from the collection"],
- args: [
- {name: "selector",
- type: "Object: Mongo selector, or String",
- type_link: "selectors",
- descr: "Specifies which documents to remove"},
- {name: "callback",
- type: "Function",
- descr: "Optional. If present, called with an error object as its argument."}
- ]
-};
-
Template.api.selectors = {
id: "selectors",
name: "Mongo-style Selectors"