Browse Source

desc -> asc

simonThiele 9 years ago
parent
commit
41cf703fdc
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/core/Raycaster.js

+ 3 - 3
src/core/Raycaster.js

@@ -33,7 +33,7 @@
 
 	};
 
-	function descSort( a, b ) {
+	function ascSort( a, b ) {
 
 		return a.distance - b.distance;
 
@@ -101,7 +101,7 @@
 
 			intersectObject( object, this, intersects, recursive );
 
-			intersects.sort( descSort );
+			intersects.sort( ascSort );
 
 			return intersects;
 
@@ -124,7 +124,7 @@
 
 			}
 
-			intersects.sort( descSort );
+			intersects.sort( ascSort );
 
 			return intersects;