SaaS CMS has officially launched! Learn more now.

How to change order of slices in powerslice filter dropdown?


I implemented powerslice and added some basic slices, but I cant seem to control in what order the slices appear in the dropdown. Implementing the "Order" property on each slice appears to have no affect. Is there another way to order them, and what is this property supposed to do?

Jun 10, 2019 23:57

Hi Jason,

Have you overridden the "Order" property?

Refer this article for reference



Jun 11, 2019 10:53

Yes, still does not seem to work. They sort in some wonky unpredictable way not matter what I set the order property of my slices to. Here is an example. I have 8 slices all property set to the right order as I want them shown. 

[ServiceConfiguration(typeof(IContentQuery)), ServiceConfiguration(typeof(IContentSlice))]
public class FormsSlice : ContentSliceBase<FormContainerBlock>
    public override string Name => "All Forms";

    public override int Order => 2;
Edited, Sep 09, 2019 18:09

Hi Jason,

You need to override SortOrder.

I was working with this myself recently and noticed the same thing, I also created a pull request to remove the Order property that isn't used at all, hopefully it'll be approved at some point.

Edited, Sep 09, 2019 19:44

That was the trick, thanks so much. The documentation should be updated to reflect that, because every post I saw with examples uses the Order property.

Sep 09, 2019 20:43
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.