json api like this.
{“data”:[{“id”:2,",“start_time”:“2019-06-26 00:00:00”,}]}
how can ı make order by start time.
my provider like this.
return new Promise(resolve => {
this.http.get('http://127.0.0.1:8000/xxx')
.map(res => res.json())
.subscribe(data => {
// we've got back the raw data, now generate the core schedule data
// and save the data for later reference
this.data = data.data;
resolve(this.data);
});
});
}
page.ts like this
public people: any;
constructor(
public rService : RProvider,public http: Http,) {
//this.getData();
this.loadPeople();
}
loadPeople(){
this.remoteService.load()
.then(data => {
console.log(data);
this.people = data;
});
}
so please help me how can ı make order depend on start time.