How can I sort a list of items by Date/Time value?
While designing a Flow, I want to show a list of items sorted by a Date/Time. Any suggestions on how to go about this?
Comments
-
Hi there,
There are a couple ways we can do this. One solution could be utilizing a Rule Collection Sort step to sort a list of items by a Date/Time value. Once adding the step to a Flow, you can configure the step to sort a collection of items by Date/Time.
Within the Rule Collection Sort step properties, set the Input Collection as the list you want sorted by Date/Time. This example uses a list containing only Date Time types.
If we wanted to sort the list contents from the most recent Date/Time to the oldest, the following Rule can be used:
Sorted output results:
Another solution would be utilizing a Fetch Entities step which has a property allowing the Date/Time results to be ordered in a specific manner.
This fetch would return the field “__date” associated Date/Times in ascending order.
Hope this helps!
Howdy, Stranger!
Categories
- 4.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions