# query.reverse()

reverse the row order of a complete query

**Introduced:** 6.0.0.18

```
query.reverse( )
```

**Returns:** query

*This function does not take any arguments.*

# 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(testQuery.reverse());
```

# Categories

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

# See Also

[QueryReverse()](../../functions/queryreverse.md), [Query](../query.md)