4 ms·
sort + callback is what I did in JavaScript: .sort(function(a,b){if(a==b){throw a;}return a-b;});
by jeresig 16y ago
sort + callback is what I did in JavaScript:
.sort(function(a,b){if(a==b){throw a;}return a-b;});
- josegonzalez 16y agoDid you eval the dom to get the dataset?
- false 16y agoI did :) JSON.parse(p.innerHTML.split('\n')[2])