cancel
Showing results for 
Search instead for 
Did you mean: 

sort does not work in UI.PresentationVariant

09-11-2025 3:07 AM
YOJAN Product and Topic Expert
379 views 0 comments
SAP Managed Tags
Subscribe

Hello community,

I would like to sort the list based on createdAt.

Bellow is part of  manifest and part of annotation.cds. No matter what I try I can not make list to be sorted.

API does no include sort either.

Any clue will help a lot. Thanks!

 

 

views": {
                "paths": [
                  {
                    "key": "tab1",
                    "annotationPath": "com.sap.vocabularies.UI.v1.SelectionVariant#variant1",
                    "presentationVariant": "com.sap.vocabularies.UI.v1.PresentationVariant#SortByCreatedAt"
                  },
....
UI.PresentationVariant #SortByCreatedAt: {
        SortOrder       : [ //Default sort order
            {
                Property    : createdAt,
                Descending  : true,
            },
        ],        
        Visualizations  : ['@UI.LineItem'],
    },

 

Accepted Solutions (0)

Answers (0)