- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Sorting List in SAP UI5 project
Yes, you can. You can use the available sorter property available on the List. It lets you specify all the required details. For e.g. −
<List Items="{ path: '/EmployeeCollection', sorter: { path: 'EmployeeName', descending: true, group: true } }" headerText="Employees" />
I have specified the employee collection to be sorted on the basis of the name of the employee and specified that the sorting should be in descending manner. It should also consider grouping while sorting the data.
- Related Articles
- Loading External Libraries in SAP UI5
- Managing user sessions in SAP UI5 application
- Binding model to sap.ui.core in SAP UI5 application
- Binding OData service to SAP UI5 table
- How to place UI5 code in SAP NetWeaver Server?
- In SAP UI5 render calling two times in custom control
- Get access or point to SAP UI5 control
- Reading an image using SAP OData v2 in UI5 application
- Using SAP Gateway service in SAP Web project
- SAP UI5 application throws an error while using Tree map
- Assign image source dynamically in XML View in Fiori app in SAP UI5
- Packaging a mobile app in built-in SAP UI5 for Android using Cordova
- Sorting Prompt values in SAP BO Webi report
- SAP UI5 framework and comparison with JQuesry and Backbone, Angular, etc.
- OData or Java Services to be consumed by SAP UI5 application

Advertisements