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.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions