Take the community feedback survey now.

Asset no longer sorting alpha order

Vote:
 

Recently, we've noticed that the assets are no longer sorting in alpha order. They appear to be sorting in order of creatation. However, changing the asset create or published date does not change the sort. The most recently created assets shows at the bottom of the list.

There was a previous problem with assets over 200 in one folder having this issue, but this is happening on folders with as few 2 items.
Asset Pane: Blocks lose name sorting when more than 200 in same C

We are at version: 12.33.2 (CMS PAAS)

We are trying to determine if this is an issue with the CMS version or unique to our implementation. We have not updated any sort configuration that we are aware of. We have implemented custom trees in the asset pane, but again, we have not set any sort order, just using default settings.

Below is a screenshot of a media folder. I updated the dates on the 2nd item and published, refreshed the CMS, but it remains as the 2nd item. So the sort is not based on the content date properties. 

Anyway to update this via code back to alpha order? 

#339896
Aug 07, 2025 21:40
Vote:
 

Your version shouldn't have this issue: https://world.optimizely.com/support/bug-list/bug/CMS-39593

I would reach out to Optmizely support.

In the meanwhile can you share your custom tree implementation?

Can you try something like this?

[ServiceConfiguration(typeof(IContentProviderManager))]
public class CustomAssetContentProvider : ContentProvider
{
    public override IList<GetChildrenReferenceResult> GetChildrenReferences(ContentReference contentLink, string languageID, int startIndex, int maxRows)
    {
        var result = base.GetChildrenReferences(contentLink, languageID, startIndex, maxRows);
        
        // Sort by name alphabetically
        var sortedResult = result.OrderBy(x => x.ContentLink.GetContent().Name).ToList();
        
        return sortedResult;
    }
}
#339983
Aug 15, 2025 11:57
Vote:
 

@Aniket - the bug you mentioned is released in CMS.Core 12.22.4, while Leslie likely mentioned their CMS.UI.Core version, which only requires CMS.Core 12.22.1 and up. Which means there is a chance that the actual version of CMS.Core is older than 12.22.4 and an upgrade should fix it 

#340029
Aug 22, 2025 11:35
Vote:
 

Thank you @Quan. We have CMS.AspNetCore 12.22.1 which I assume correlates to the same version of CMS.Core. So we most likely have the bug, will check if fixed when we pull a newer package.

In the meantime, we added Tung Tran's dojo customization for "Adding Sort option to the Asset Pane" which defaults tree items to alpha order.
Optimizely CMS - Adding Sort option to the Asset Pane / Blogs / Perficient

#340041
Aug 22, 2025 13:14
* 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.