Просмотр исходного кода

Refs #2027. Fixed sort order assumption.

Spencer Rathbun 13 лет назад
Родитель
Сommit
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