mirror of
https://github.com/LaconicNetwork/laconic.com.git
synced 2026-01-20 01:04:09 +00:00
Signed-off-by: Traxus <shyidx@gmail.com>
This commit is contained in:
parent
1899d0fd25
commit
5a7370b817
@ -317,8 +317,9 @@ function forceBlogPostsJsonSlugIntegrity(json : any) {
|
||||
}
|
||||
|
||||
function sortBlogPostsJsonByDate(json : any) {
|
||||
|
||||
|
||||
let sortedJson = json.slice().sort((a, b) => datocmsDateToIng(b.date) - datocmsDateToIng(a.date));
|
||||
let sortedJson = json.slice().sort((a : any, b: any) => datocmsDateToIng(b.date) - datocmsDateToIng(a.date));
|
||||
|
||||
return sortedJson;
|
||||
}
|
||||
@ -602,7 +603,7 @@ function getRequiedEventNodes() {
|
||||
|
||||
function sortEventsJsonByStartDate(json : any) {
|
||||
|
||||
let sortedJson = json.slice().sort((a, b) => datocmsDateToIng(b.eventStartdate) - datocmsDateToIng(a.eventStartdate));
|
||||
let sortedJson = json.slice().sort((a : any, b: any) => datocmsDateToIng(b.eventStartdate) - datocmsDateToIng(a.eventStartdate));
|
||||
|
||||
return sortedJson;
|
||||
}
|
||||
@ -651,7 +652,7 @@ function getRequiedPositionNodes() {
|
||||
|
||||
function sortPositionsJsonById(json : any) {
|
||||
|
||||
let sortedJson = json.slice().sort((a, b) => parseInt(a.id) - parseInt(b.id));
|
||||
let sortedJson = json.slice().sort((a : any, b: any) => parseInt(a.id) - parseInt(b.id));
|
||||
|
||||
return sortedJson;
|
||||
}
|
||||
@ -701,7 +702,7 @@ function getRequiedPressReleaseNodes() {
|
||||
|
||||
function sortPressReleasesJsonByDate(json : any) {
|
||||
|
||||
let sortedJson = json.slice().sort((a, b) => datocmsDateToIng(b.date) - datocmsDateToIng(a.date));
|
||||
let sortedJson = json.slice().sort((a : any, b: any) => datocmsDateToIng(b.date) - datocmsDateToIng(a.date));
|
||||
|
||||
return sortedJson;
|
||||
}
|
||||
@ -749,7 +750,7 @@ function getRequiedTeamNodes() {
|
||||
|
||||
function sortTeamsJsonById(json : any) {
|
||||
|
||||
let sortedJson = json.slice().sort((a, b) => parseInt(a.id) - parseInt(b.id));
|
||||
let sortedJson = json.slice().sort((a : any, b: any) => parseInt(a.id) - parseInt(b.id));
|
||||
|
||||
return sortedJson;
|
||||
}
|
||||
@ -799,7 +800,7 @@ function getRequiedTestimonialNodes() {
|
||||
|
||||
function sortTestimonialsJsonById(json : any) {
|
||||
|
||||
let sortedJson = json.slice().sort((a, b) => parseInt(a.id) - parseInt(b.id));
|
||||
let sortedJson = json.slice().sort((a : any, b: any) => parseInt(a.id) - parseInt(b.id));
|
||||
|
||||
return sortedJson;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user