CMS Sort of items with a specific flag

Hey,

I have a collection of items that may have a badge “Best selling” visible (depending on the toggle in CMS switched on or not).

I’d like to set sorting functionality via “best selling” option so the list is being sorted in the way that items with best selling badge visible on it are presented at the beginning.

Is that feasible?

Hey @filip.radkiewicz! I have not tested this functionality but it seems to be possible as long as we can trigger the sort function (if the checkbox doesn’t work we can mirror any click made to a hidden button that works as a trigger). But you should be able to add the fs-cmssort-element=IDENTIFIER to either the wrapper of the “Best selling” tag or directly on the element.

This should group the elements that have the tag and those that do not have it. If you have a page ready please share it and I will test the setup :wink: