Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (var key in localStorage) {
- if (key != 'key' && key != 'setItem' && key != 'getItem' && key != 'removeItem' && key != 'clear' && key != 'length' && key != 'board') {
- test[i] = localStorage.getItem(key).split(',');
- i++;
- }
- }
- function mySortingA(a, b) {
- a = a[1] + a[0] + a[2];
- b = b[1] + b[0] + b[2];
- return a == b ? 0 : (a < b ? -1 : 1)
- a = a[1] + parseInt(a[0]) + a[2];
- b = b[1] + parseInt(b[0]) + b[2];
Add Comment
Please, Sign In to add comment