How to orderBy SPList Item using pnp
private GetSelectedColumn():void
{
pnp.sp.web.lists.getByTitle("Employee").items.orderBy("Name",true)
.get().then(function(response){
console.log(response);
}).catch(function(exception){
alert("Something went wrong :"+exception);
});
}
No comments:
Post a Comment