diff --git a/src/Renderer.js b/src/Renderer.js
index 835f238..f9cf0a9 100644
--- a/src/Renderer.js
+++ b/src/Renderer.js
@@ -289,7 +289,7 @@ html2canvas.prototype.canvasRenderer = function(queue){
  * Sort elements based on z-index and position attributes
  */
 
-
+/*
 html2canvas.prototype.sortQueue = function(queue){
     if (!this.opts.reorderZ || !this.needReorder) return queue;
     
@@ -327,16 +327,11 @@ html2canvas.prototype.sortQueue = function(queue){
     });
     
     
-    /*
 
-    console.log('after');
-    this.each(queue,function(i,e){
-        console.log(i+":"+e.zIndex); 
-       // console.log(e.ctx.storage); 
-    });    */
     
     return queue;
 }
+*/
 
 html2canvas.prototype.setContextVariable = function(ctx,variable,value){
     if (!ctx.storage){
diff --git a/src/Util.js b/src/Util.js
index 8cfbf53..6fcd9d1 100644
--- a/src/Util.js
+++ b/src/Util.js
@@ -168,24 +168,30 @@ html2canvas.prototype.sortZ = function(zStack){
             subStacks.push(stackChild);
             stackValues.push(stackChild.zindex);
         }else{         
-            _.queue.push(stackChild);
+          
+
+                _.queue.push(stackChild);
+
         }
         
     });
-    
-   
-    
-    stackValues.sort(function(a,b){return a - b});
+        
+
+
+
+    stackValues.sort(function(a,b){
+        return a - b
+        });
     
     this.each(stackValues, function(i,zValue){
-          for (var s = 0;s<=subStacks.length;s++){
-              if (subStacks[s].zindex == zValue){
-                  var stackChild = subStacks.splice(s,1);
-                  _.sortZ(stackChild[0]);
-                  break;
+        for (var s = 0;s<=subStacks.length;s++){
+            if (subStacks[s].zindex == zValue){
+                var stackChild = subStacks.splice(s,1);
+                _.sortZ(stackChild[0]);
+                break;
                   
-              }
-          }
+            }
+        }
 
     });