Sort DataGrid when datasource is REST

How can i apply a default sorting in a DataGrid when the data is coming from a REST API?

You will have to sort the data coming from the REST API somehow.