I'm a beginner at developing web applications via UI5 and am having some difficulty with the sort option for my table.
I currently have a column with a timestamp in it and wish to sort the table by this column descending so that the newest inserted records are displayed first. I know this can be done by selecting the 'sort descending' option from the table itself by the user but wish to do it upon table construction. I have tried using "columnName.setSorted()" and declaring a 'sortOrder' variable but am unsure what the best course of action is.
Has anybody faced the same difficulty or is there an obvious solution that I'm missing?
Below is a snippet of my table and column creation and the table is populated from an OData model.
Thanks in advance!