« first day (2548 days earlier)      last day (1569 days later) » 

3:04 AM
ahem
 
 
7 hours later…
9:36 AM
data: {
roles: ['bbh'],
introduction: 'I am a BBH',
avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
name: 'BBH'
}
 
1 message moved from JavaScript
 
 
2 hours later…
 
1 hour later…
1:35 PM
data: {
roles: ['bbh'],
introduction: 'I am a BBH',
avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
name: 'BBH'
}
 
1 message moved from Test My Bot
 
data: {
roles: ['bbh'],
introduction: 'I am a BBH',
avatar: 'htdtps://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
name: 'BBH'
}
 
1 message moved from Test My Bot
 
data: {
roles: ['bbh'],
introduction: 'I am a BBH',
avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
name: 'BBH'
}
 
1 message moved from Test My Bot
 
1:54 PM
data: {
roles: ['bbh'],
introduction: 'I am a BBH',
avatar: 'httpds://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
name: 'BBH'
}dd


JamesBot
JamesBot
123
@JBis Pl
 
1 message moved from Test My Bot
 
dasta: {
roles: ['bbh'],
introduction: 'I am a BBH',
avatar: 'httpds://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
name: 'BBH'
}dd


JamesBot
JamesBot
123
@JBis Pl
 
1 message moved from Test My Bot
 
if (test) {
move to bin pl0x
} else {
har har if I am still here....
}
 
1 message moved from JavaScript
 
2:08 PM
codepostat = 1508
if (test) {
move to bin pl0x
} else {
har har if I am still here....
}
 
1 message moved from JavaScript
 
 
5 hours later…
6:50 PM
function compareNumeric(a, b) {
if (a > b) return 1;
if (a == b) return 0;
if (a < b) return -1;
}

let arr = [ 1, 2, 15 ];

arr.sort(compareNumeric);

alert(arr); // 1, 2, 15

How does the array get sorted based on the return values? Let's say I have an array:
[2, -5, 3, -7, -8, 14]. If -1 is returned, does that mean that the smaller element switches places with the bigger one? If i compared -7 to the previous bigger element, it would switch places only once though. Or is the whole array traversed by the function so often till there is no return -1
 
1 message moved from JavaScript
 
7:07 PM
function compareNumeric(a, b) {
if (a > b) return 1;
if (a == b) return 0;
if (a < b) return -1;
}

let arr = [ 1, 2, 15 ];

arr.sort(compareNumeric);

alert(arr); // 1, 2, 15
 
 
4 hours later…

« first day (2548 days earlier)      last day (1569 days later) »