We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8864805 commit a865ee5Copy full SHA for a865ee5
doc-map-info.js
@@ -1,3 +1,5 @@
1
+var path = require("path");
2
+
3
var DocMapInfo = function(docMap, getCurrent) {
4
this.docMap = docMap;
5
this.childrenMap = makeChildrenMap(docMap);
@@ -198,8 +200,8 @@ var compareDocObjects = function(child1, child2){
198
200
return -1;
199
201
}
202
- if(typeof child1.order == "number"){
- if(typeof child2.order == "number"){
203
+ if(typeof child1.order === "number"){
204
+ if(typeof child2.order === "number"){
205
// same order given?
206
if(child1.order == child2.order){
207
// sort by name
@@ -215,7 +217,7 @@ var compareDocObjects = function(child1, child2){
215
217
216
218
219
} else {
220
221
return 1;
222
223
// alphabetical
0 commit comments