The rows.visible() method returns a flat array of Scheduler rows that are visible at the moment.
DayPilot.Scheduler.rows.visible();Returns a flat array of DayPilot.Row objects.
The result doesn't include children of rows that are collapsed or rows hidden using a row filter.
The array preserves the order in which the rows are currently displayed.
const visibleRows = dp.rows.visible();DayPilot.Scheduler.rows.sort()
Row Filtering [doc.daypilot.org]