Closed flex-hyuntae closed 2 months ago
sort((a, b) => a > b, [3, 4, 1, 2, 5, 2]); // [1, 2, 2, 3, 4, 5] sort((a, b) => a > b, 'bcdaef); // ["a", "b", "c", "d", "e", "f"]
sort((a, b) => a - b, [3, 4, 1, 2, 5, 2]); // [1, 2, 2, 3, 4, 5]
sort((a, b) => a > b, [3, 4, 1, 2, 5, 2]); // [3, 4, 1, 2, 5, 2] sort((a, b) => a > b, 'bcdaef); // ['b', 'c', 'd', 'a', 'e', 'f']
I don't know what the intent is
If it is intended to use '>' inside the Sort function, then the function should be fixed. If not, I think you need to fix the example
@flex-hyuntae thank you for your report๐ I will fix it :)
@ppeeou Hello, first example also not working
Bug Report
๐ป Code
๐ Actual behavior
๐ Expected behavior
I don't know what the intent is
If it is intended to use '>' inside the Sort function, then the function should be fixed. If not, I think you need to fix the example
Version Information