# Sort Rules Contains all the Sort Rules deployed by the Industrial Equipment Template package. These Sort Rule Sets allow sorting Materials by Process Activity information. | Name | Description | | :------------------------------ | :------------------------------------------------------------------------------ | | IndEqProcessActivitiesStartDate | Sort by the earliest Process Activity Start Date of the Material | | IndEqProcessActivitiesEndDate | Sort by the earliest Process Activity expected End Date of the Material | | IndEqProcessActivitiesTimeLeft | Sort by the smallest remaining time of the Material Process Activity Checklists | | IndEqProcessActivitiesDelay | Sort by the smallest slack time of the Material Process Activity Checklists | ## IndEqProcessActivitiesStartDate Sorts by the Process Activity Start Date. All the non-terminated Process Activities of the Material that are not Closed, Cancelled or Skipped are evaluated, and the earliest `StartDate` is used. If the Material has no Process Activities, or the Start Date is null, `DateTime.MaxValue` is returned so that the Material is sorted last. ## IndEqProcessActivitiesEndDate Sorts by the expected End Date of the Process Activities, calculated as the Start Date plus the `StandardDuration` (in seconds) of the Checklist associated to the activity. All the eligible Process Activities are evaluated and the smallest expected End Date is used. If there is no valid data, `DateTime.MaxValue` is returned. ## IndEqProcessActivitiesTimeLeft Sorts by the remaining time of the Process Activity Checklists. For each Checklist, the `StandardDuration` of the manual task items that are not completed (`NotStarted` or `Started`) is summed, and the smallest sum is used as the remaining time. It allows evaluating the remaining workload of each activity. ## IndEqProcessActivitiesDelay Sorts by the slack time of the Process Activity Checklists. The slack is calculated as the total `StandardDuration` of the Checklist, minus the duration of the completed items, minus the duration of the items not completed, minus the elapsed time. The slack time is calculated for each Checklist and the smallest value is used, identifying the most time-critical activities.