js-cfb/bits/57_resort.js

4 lines
200 B
JavaScript
Raw Normal View History

2017-09-14 21:14:22 +00:00
data.sort(function(x,y) { return namecmp(x[0], y[0]); });
cfb.FullPaths = []; cfb.FileIndex = [];
for(i = 0; i < data.length; ++i) { cfb.FullPaths[i] = data[i][0]; cfb.FileIndex[i] = data[i][1]; }