Code Duplication    Length = 15-15 lines in 2 locations

src/ub.arrays.core.js 2 locations

@@ 1003-1017 (lines=15) @@
1000
		return transposed;
1001
	},
1002
	
1003
	sort: function() {
1004
		var arr = this;
1005
		var transposed = [];
1006
		
1007
		for (var r = 0; r < arr.length; r++) {
1008
			for (var c = 0; c < arr[r].length; c++) {
1009
				if (transposed[c] == null) {
1010
					transposed[c] = [];
1011
				}
1012
				transposed[c][r] = arr[r][c];
1013
			}
1014
		}
1015
		
1016
		return transposed;
1017
	},
1018
	
1019
	none:null
1020
};
@@ 987-1001 (lines=15) @@
984
		return list;
985
	},
986
	
987
	transpose: function() {
988
		var arr = this;
989
		var transposed = [];
990
		
991
		for (var r = 0; r < arr.length; r++) {
992
			for (var c = 0; c < arr[r].length; c++) {
993
				if (transposed[c] == null) {
994
					transposed[c] = [];
995
				}
996
				transposed[c][r] = arr[r][c];
997
			}
998
		}
999
		
1000
		return transposed;
1001
	},
1002
	
1003
	sort: function() {
1004
		var arr = this;