How to create pipe

how to create pipe to sort data with date

Don’t. Angular removed this functionality because it was causing pages to freeze. Sort in your ts file, display the sorted data in your template.

So i want to sort this list by event type and eventdate.
this.registerProvider.getRegisteredStudent().on(‘value’, snap => {

		console.log('snap '+snap); 
        this.registeredStudent = [];
         snap.forEach(data => {
		 let value:any= this.getEvent(data.val().eventdata);
		 let value1:any=this.getUser(data.val().userdata);
		 console.log('value='+value);
		   console.log('data'+data); 
                this.registeredStudent.push({
                eventStatus: data.val().status,
                eventType: value.eventType,
                userName:value1,  
                eventData: data.key,
                eventDate:value.startDate
            });
            return false;
        });console.log('length'+ this.registeredStudent.length)
        console.log('status')
       
    });
    
}![sort|690x339](upload://uR70c2pNjIDeqFaEgeq6wbacnPF.png)