Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Asset Pane: Blocks lose name sorting when more than 200 in same Content Folder

Vote:
 

It seems that when there are more than 200 blocks in a Content Assets folder they lose their alphabetical sorting in the Blocks gadget.

This was first discovered by our editors when trying to add Contact Blocks. These were all in same Content Asset folder. With more than 200 blocks and no sorting they were having a tough time finding the right block.

I have since reproduced it on Alloy demo site (EPiServer.CMS.Core 11.15.1, EPiServer.CMS.UI.Core 11.25.0).

By mutliplying the blocks under the Events Assets folder so that they reached 256 blocks the alphabetical sorting stops working.
The underlying cause seems to be that they stop being delivered in order from the contentstructure store. (http://localhost:64563/EPiServer/cms/Stores/contentstructure/?references=69&query=getpagedchildren&allLanguages=true&typeIdentifiers=episerver.core.blockdata&sort(+name)&dojo.preventCache=1624452789883)

It also seems to be related to the Range header in the request, since reproducing the request in Postman and then stripping the Range header results in a response with items in correct order.

#256992
Jun 23, 2021 13:23
Vote:
 

This seem to be an issue in CMS 12 as well. 

#300436
Apr 20, 2023 14:35
Vote:
 

Can confirm. I just ran into this today and found this thread.

#303257
Jun 09, 2023 13:59
Vote:
 

It appears that the blocks lose their alphabetical sorting due to the delivery order from the contentstructure store. Removing the Range header from the request may help maintain the correct order.

#303978
Edited, Jun 23, 2023 21:19
* 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.