this.httpClient.get(‘https://www.
get_facultyclasstimeframetimetable_data.php?Database=’+Db + ‘&CourseId=’ + this.CourseId + ‘&SectionId=’ + this.SectionId +’&AcademicYear=’ + this.PostData[0].AcademicYear + ‘&FacReserved=’ + this.FacReserved) .subscribe
((data3) =>{
this.PostData3 = data3;
for(let row=1; row<=this.PostData3[0].Day; row++)
{
this.Daynum = row;
this.httpClient.get('https://www.get_facultyclasstimeframetimetabledetails_data.php?Database='+Db + '&CourseId=' + this.CourseId + '&SectionId=' + this.SectionId +'&AcademicYear=' + this.PostData[0].AcademicYear + '&FacReserved=' + this.FacReserved + '&DayNum=' + this.Daynum)
.subscribe
((data4) =>{
this.PostData4 = data4;
this.dataArr.push(this.PostData4);
});
}
this.dataArr.sort(function(a, b) {
return a.Day - b.Day
});
//this.dataArr.sort((a,b) => a.Array(8).Day.localeCompare(b.Array(8).Day));
console.log(this.dataArr);
});