Developer forum

Forum » Feature requests » Facet sorting
Peter Leleulya
Peter Leleulya
Reply

My colleagues stumbled upon the facet sorting issue AGAIN.
I often create my own templates, so I can sort as I please, but now we are working with Swift and do not want to change templates due to upgrade issues in the future.

They now have facet options which seem to be sorted by label name descending ...
Which is not wat we want. This is almost never what you want ...

I've seen Nuno descibe exactly wat we need in this forum post: https://doc.dynamicweb.com/forum/ecommerce-standard-features/ecommerce-standard-features/facet-terms-sorting

But I don't think it has been implemented yet.

So ....  can you please implement this feature as described by Nuno?
Or point out to me how to sort the facet options (per facet)

 


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

+1

 
Suzi Louring
Reply

+1

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

+1  😂

 
Marie Louise Veigert
Reply

+1

 
Yoon Peti Nwe Dynamicweb Employee
Yoon Peti Nwe
Reply

Dear Forum,

Is there any solution for this now?

One of our customer also expecting this function.

Thanks,

Yoon

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Yoon (and Peter),

 

A workaround you can use is:

  • Extend the Render Types to contain options that sort by Name (aka Label), By Value and By Results
  • Then use LINQ to sort the loop of options. In my example a method returns the sorted loop

 

That should allow for a small customization. I did not consider Ascending/Descending in this example, but using it as inspiration you should be able to easily do it.

 

Best Regards,

Nuno Aguiar