# QueryReverse()

reverse the row order of a complete query

**Introduced:** 6.0.0.18

```
QueryReverse( query=query );
```

**Returns:** query

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| query | query | Yes | query to reverse rows. |  |

# Examples

```cfml
    testQuery = queryNew( "name , age" , "varchar , numeric" , { name: [ "Susi" , "Urs" ] , age: [ 20 , 24 ] } );
    writeOutput("The query:<br />");
    writeDump(testQuery);
    writeOutput("The reversed query:<br />");
    writeDump(queryreverse(testQuery));
```







# Categories

[Queries](../../categories/query.md)

# See Also

[query.reverse()](../objects/query/reverse.md)