Closed ghost closed 4 years ago
Sorting has to be made thanks to Linq. One basic example may be:
ProductFactory factory= new ProductFactory(TestUrl, TestApiKey, null);
var orderedProducts = factory.GetAll().OrderByDescending(d => d.id);
Gracias. Se que por rendimiento es igual, pero queria conocer esta función orderbydescending. thanks. the isue are equal filter or GetAll, but now a know this method.
¿Como usar el metodo sort de la entidad order_State? Quiero ordenar los estados, sin usar GetByFilter
Dim PSStates As New Bukimedia.PrestaSharp.Factories.OrderStateFactory(frmConfig.GetWSUrl, frmConfig.GetWSLoginUser, frmConfig.GetWSKey) Dim States As New List(Of Bukimedia.PrestaSharp.Entities.order_state)
'** States = PSStates.GetByFilter(Nothing, "id_desc", "") 'esto funciona, pero no quiero usarlo, pues me gustaría conectar el funcionamiento de sort '**