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

Try our conversational search powered by Generative AI!

FileSystemDataSource and FileSortOrder.Type not working

Vote:
 

When using a FileSystemDataSource and a page property of type "Sort order for files", the files are not being sorted by "File type".

Compare() in FileSystemItemComparer reveals the problem:

case FileSortOrder.Type:
return x.Type.CompareTo(y.Type);

The code is actually doing a comparison on the object type.

Best regards

René

------------------
EPiServer CMS 5 R2

#29299
Apr 20, 2009 13:02
* 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.