first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
window.site = {
|
||||
reverseRankingDate(data) {
|
||||
for (let i = 0; i < data.length - 1; i++) {
|
||||
for (let j = 0; j < data.length - 1 - i; j++) {
|
||||
if (moment().format(data[j].start_time) > moment().format(data[j + 1].start_time)) {
|
||||
let temp = data[j];
|
||||
data[j] = data[j + 1];
|
||||
data[j + 1] = temp;
|
||||
}
|
||||
}
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user