浏览代码

Refs #2027. Fixed sort order assumption.

Spencer Rathbun 12 年之前
父节点
当前提交
e91217e434
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/pipeline/documentSources/DocumentSource.js

+ 1 - 1
lib/pipeline/documentSources/DocumentSource.js

@@ -218,7 +218,7 @@ public:
             bb._id = 0;
 
         var last = "";
-        Object.keys(deps).forEach(function(it){
+        Object.keys(deps).sort().forEach(function(it){
             if (last !== "" && it.slice(0, last.length) === last){
                 // we are including a parent of *it so we don't need to
                 // include this field explicitly. In fact, due to