I'm trying to sort the items of a list control (sap.m.List) like following within the controller of the view:var oBinding = this.getView().byId("list").getBinding("items"); oBinding.sort(new sap.ui.model.Sorter("value", true, false));
The ListBinding is returned successfully, but the sort does not work.
For test reasons I bound a collection of an ODataModel. The data is retrieved from a Json file using the UI5 MockServer.
I also have implemented a filter (oBinding.filter(...) which works.
What I'm doing wrong?