Home Search

DriveWorks Solo 21
TableReverse

Send Feedback

TableReverse

Reverses the order of the rows in the given table.

Syntax

TableReverse([Table])

Where:

Table is the Table to reverse the row order of.

Examples

RuleMeaning
TableReverse(DWGroupTableCustomers)Will reverse the existing order of the rows in the Customers table.

Example Data

Customers Table

CustomerNameCityCountry
Amazon WarriorsParisFrance
Bolton BurnersConcordUnited States
Boston BullsHanoverGermany
Cambridge CatsToulouseFrance

Example Outcome

Customers Table

CustomerNameCityCountry
Cambridge CatsToulouseFrance
Boston BullsHanoverGermany
Bolton BurnersWalthamUSA
Amazon WarriorsParisFrance

DriveWorks will return the table above as an array, which will look like:

Table returned as an Array
{"CustomerName","City","Country";"Cambridge Cats","Toulouse","France";"Boston Bulls","Hanover","Germany";"Bolton Burners","Concord","United States";"Amazon Warriors","Paris","France"}