---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideList (Next Experience) - Client

# GlideList (Next Experience) - Client {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 7 minutes to read

The GlideList API provides methods to customize lists in the Next Experience UI Framework.

This API enables adding GlideList functionality to a button in the Workspace Experience UI. Use the `g_list` variable to call each
method.

To add a button, create a list action and add GlideList method calls into the Client Script field `onClick{}` method. For instructions, see [Use the client GlideList API in the Workspace Experience UI](https://servicenow-prod.fluidtopics.net/YXRSYXmMsyNvOliufhyQug "Add a custom button to the Agent Workspace Lists page that returns list information in the current view. Define the information to return by adding client GlideList API methods to an action assignment.").  
Note:  
Each method must be used with the refresh() method, with the exceptions of sort() and sortDescending() methods.  
The methods in this API are based on [GlideList2](https://servicenow-prod.fluidtopics.net/z9iaUJmaHw4BYGeS8g8Qwg#c_GlideList2API "The GlideList2 API provides methods to customize (v2) lists."). The following GlideList2 methods are not supported in the Next Experience framework and cause an error in the console log:

* isUserList()
* setFirstRow()
* showHideGroups()
* showHideList()
* toggleList()
* toggleListNoPref()
{#GlideListClientAPINEx__ul_zyt_nsk_3rb}

## GlideList (Next Experience) - addFilter(String filter) {#ariaid-title2}

Adds a single term to the list query filter.
See also [setFilter()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-setFilter_S "Sets the encoded query string for the list, ignoring the orderBy and groupBy parts of the query string.").
{#GLNEx-addFilter_S__table_sgz_zpw_15__entry__3}{#GLNEx-addFilter_S__gList_parmDesc_filter}

| Name | Type | Description |
|-|-|-|
| filter | String | Encoded query string in standard Glide format. See [Encoded query strings](https://www.servicenow.com/docs/access?context=c_EncodedQueryStrings&version=xanadu&pubname=xanadu-platform-user-interface&ft:locale=en-US). |
[Table 1. Parameters]

{#GLNEx-addFilter_S__table_sgz_zpw_15} {#GLNEx-addFilter_S__table_tgz_zpw_15__entry__2}

| Type | Description |
|-|-|
| None |   |
[Table 2. Returns]

{#GLNEx-addFilter_S__table_tgz_zpw_15}  
The following example shows how to retrieve a list of active records and refresh the
page.

    g_list.addFilter("active=true");
    g_list.refresh();

## GlideList (Next Experience) - getChecked() {#ariaid-title3}

Returns a comma-separated list of the sys_ids for the items that are checked in the associated list.
{#GLNEx-getChecked__table_wgz_zpw_15__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 3. Parameters]

{#GLNEx-getChecked__table_wgz_zpw_15} {#GLNEx-getChecked__table_xgz_zpw_15__entry__2}

| Type | Description |
|-|-|
| String | Comma-separated list of the sys_ids for the items that are checked in the list. Does not check to determine that the items returned are allowed to be executed. |
[Table 4. Returns]

{#GLNEx-getChecked__table_xgz_zpw_15}  
The following example shows how to get the sys_ids of each record selected in a list.

    var myChecked = g_list.getChecked();
    alert(myChecked);
    g_list.refresh();

Output in an alert box (empty if no records are selected):

    079893e6b733330059128ac7ee11a967, 4fca6d45b7131010f03e9b7ade11a9d3, 5c460fbf1bd0011079e52131604bcbd9

## GlideList (Next Experience) - getFixedQuery() {#ariaid-title4}

Returns the fixed query.
A fixed query is the part of the query that cannot be removed from the breadcrumb (i.e., it is fixed for the user).

Apply this method under Related List Actions in the Workspace Experience UI. For instructions, see [Use the client GlideList API in the
Workspace Experience UI](https://servicenow-prod.fluidtopics.net/YXRSYXmMsyNvOliufhyQug "Add a custom button to the Agent Workspace Lists page that returns list information in the current view. Define the information to return by adding client GlideList API methods to an action assignment.").
{#GLNEx-getFixedQuery__table_ygz_zpw_15__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 5. Parameters]

{#GLNEx-getFixedQuery__table_ygz_zpw_15} {#GLNEx-getFixedQuery__table_zgz_zpw_15__entry__2}

| Type | Description |
|-|-|
| String | The fixed query string for the list. |
[Table 6. Returns]

{#GLNEx-getFixedQuery__table_zgz_zpw_15}  
The following example shows how to display a fixed query with a debug message in the
browser console log.

    console.log(g_list.getFixedQuery() + " debug message");

The output after clicking the button on the Child Incidents tab in an Incident record.

    parent_incident=46f1784ba9fe19810018aa27fbb23482 debug message

## GlideList (Next Experience) - getGroupBy() {#ariaid-title5}

Returns the field or comma-separated list of fields that are used to group the list.
See also:

* [getQuery()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-getQuery_O "Returns the encoded query string for the list.")
* [setGroupBy()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-setGroupBy_S "Sets the list groupBy criteria for a single field.")
{#GLNEx-getGroupBy__ul_yns_wpt_xrb}
{#GLNEx-getGroupBy__table_ahz_zpw_15__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 7. Parameters]

{#GLNEx-getGroupBy__table_ahz_zpw_15} {#GLNEx-getGroupBy__table_bhz_zpw_15__entry__2}

| Type | Description |
|-|-|
| String | The field or comma-separated list of fields that are used to group the list. |
[Table 8. Returns]

{#GLNEx-getGroupBy__table_bhz_zpw_15}  
The following example shows how to get field groupBy values of the current list view.

    var grpdBy = g_list.getGroupBy();
    alert("The list is grouped by " + grpdBy);
    g_list.refresh();

Output in an alert box for a list grouped by priority:

    The list is grouped by ^GROUPBYpriority

## GlideList (Next Experience) - getListName() {#ariaid-title6}

Returns the name of the list, which is usually the table name.
{#GLNEx-getListName__table_chz_zpw_15__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 9. Parameters]

{#GLNEx-getListName__table_chz_zpw_15} {#GLNEx-getListName__table_dhz_zpw_15__entry__2}

| Type | Description |
|-|-|
| String | The list name (usually the table name). |
[Table 10. Returns]

{#GLNEx-getListName__table_dhz_zpw_15}  
The following example shows how to call the method.

    g_list.getListName();

## GlideList (Next Experience) - getOrderBy() {#ariaid-title7}

Returns the first field used to order the list.
See also:

* [getQuery()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-getQuery_O "Returns the encoded query string for the list.")
* [setOrderBy()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-getOrderBy "Returns the first field used to order the list.")
{#GLNEx-getOrderBy__ul_yns_wpt_xrb}
{#GLNEx-getOrderBy__table_qs2_nww_15__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 11. Parameters]

{#GLNEx-getOrderBy__table_qs2_nww_15} {#GLNEx-getOrderBy__table_rs2_nww_15__entry__2}

| Type | Description |
|-|-|
| String | The field by which to order the list. Empty if the list is not ordered. |
[Table 12. Returns]

{#GLNEx-getOrderBy__table_rs2_nww_15}  
The following example shows how to get field orderBy values of the current list view.

    var orderBy = g_list.getOrderBy();
    	
    alert("The list is ordered by " + orderBy);
    g_list.refresh();

Output in an alert box for a list ordered by priority:

    The list is ordered by ^ORDERBYDESCpriority

## GlideList (Next Experience) - getParentTable() {#ariaid-title8}

Returns the name of the parent table for a related list (the table associated with the form).
{#GLNEx-getParentTable__table_ss2_nww_15__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 13. Parameters]

{#GLNEx-getParentTable__table_ss2_nww_15} {#GLNEx-getParentTable__table_ts2_nww_15__entry__2}

| Type | Description |
|-|-|
| String | The parent table name. |
[Table 14. Returns]

{#GLNEx-getParentTable__table_ts2_nww_15}  
The following example shows how to call the method.

    g_list.getParentTable();
    g_list.refresh();

## GlideList (Next Experience) - getQuery(Object) {#ariaid-title9}

Returns the encoded query string for the list.
See also:

* [getFixedQuery()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-getFixedQuery "Returns the fixed query.")
* [getGroupBy()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-getGroupBy "Returns the field or comma-separated list of fields that are used to group the list.")
* [getOrderBy()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-getOrderBy "Returns the first field used to order the list.")
* [setGroupBy()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-setGroupBy_S "Sets the list groupBy criteria for a single field.")
* [setOrderBy()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-setOrderBy_S "Sets the orderBy criteria for the list.")
{#GLNEx-getQuery_O__ul_yns_wpt_xrb}
{#GLNEx-getQuery_O__table_us2_nww_15__entry__3}

| Name | Type | Description |
|-|-|-|
| \<object\> | Object | Optional. By default, this method includes orderBy, groupBy, and fixed query in the results. You can set object properties to restrict results to one or more of the three available options. |
| \<object\>.orderBy | Boolean | Optional. Flag that indicates whether to include orderBy in results. Valid values: * true: Include orderBy in results. * false: Do not include orderBy in results. {#GLNEx-getQuery_O__ul_awp_k1n_vrb} Default: false |
| \<object\>.groupBy | Boolean | Optional. Flag that indicates whether to include groupBy in results. Valid values: * true: Include groupBy in results. * false: Do not include groupBy in results. {#GLNEx-getQuery_O__ul_gpz_21n_vrb} Default: false |
| \<object\>.fixed | Boolean | Optional. Flag that indicates whether to include fixed query in results. Valid values: * true: Include fixed query in results. * false: Do not include fixed query in results. {#GLNEx-getQuery_O__ul_e5s_11n_vrb} Default: false |
[Table 15. Parameters]

{#GLNEx-getQuery_O__table_us2_nww_15} {#GLNEx-getQuery_O__table_vs2_nww_15__entry__2}

| Type | Description |
|-|-|
| String | Encoded query string for the list. |
[Table 16. Returns]

{#GLNEx-getQuery_O__table_vs2_nww_15}  
The following example shows how to display the list encoded query with a debug message in
the browser console log.

    var myQuery = g_list.getQuery();
    console.log(myQuery + " message");

Output:

    active=false^EQ message

## GlideList (Next Experience) - getRelated() {#ariaid-title10}

Returns the related list field that associates the related list to the parent form.
{#GLNEx-getRelated__table_ws2_nww_15__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 17. Parameters]

{#GLNEx-getRelated__table_ws2_nww_15} {#GLNEx-getRelated__table_xs2_nww_15__entry__2}

| Type | Description |
|-|-|
| String | Field that connects the list to the parent form. |
[Table 18. Returns]

{#GLNEx-getRelated__table_xs2_nww_15}  
The following example shows how to call the method.

    g_list.getRelated();

## GlideList (Next Experience) - getTableName() {#ariaid-title11}

Returns the table name for the list.
{#GLNEx-getTableName__table_ys2_nww_15__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 19. Parameters]

{#GLNEx-getTableName__table_ys2_nww_15} {#GLNEx-getTableName__table_zs2_nww_15__entry__2}

| Type | Description |
|-|-|
| String | Returns the table name for the list. |
[Table 20. Returns]

{#GLNEx-getTableName__table_zs2_nww_15}  
The following example shows how to display the list name for the current view.

    var listName = g_list.getListName();
    alert("The current list name is " + listName);
    g_list.refresh();

Output in an alert box:

    The current list name is incident

## GlideList (Next Experience) - getTitle() {#ariaid-title12}

Returns the list title.
{#GLNEx-getTitle__table_at2_nww_15__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 21. Parameters]

{#GLNEx-getTitle__table_at2_nww_15} {#GLNEx-getTitle__table_bt2_nww_15__entry__2}

| Type | Description |
|-|-|
| String | The list title. |
[Table 22. Returns]

{#GLNEx-getTitle__table_bt2_nww_15}  
The following example shows how to call the method.

    g_list.getTitle();

## GlideList (Next Experience) - getView() {#ariaid-title13}

Returns the view used to display the list.
{#GLNEx-getView__table_llc_vmx_15__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 23. Parameters]

{#GLNEx-getView__table_llc_vmx_15} {#GLNEx-getView__table_mlc_vmx_15__entry__2}

| Type | Description |
|-|-|
| String | The name of the view. |
[Table 24. Returns]

{#GLNEx-getView__table_mlc_vmx_15}  
The following example shows how to call the method.

    g_list.getView();

## GlideList (Next Experience) - refresh(Number firstRow) {#ariaid-title14}

Refreshes the list. The orderBy part of the list filter is ignored so that the list uses its natural ordering when it is refreshed.
{#GLNEx-refresh_N_S__table_plc_vmx_15__entry__3}{#GLNEx-refresh_N_S__gList_parmDesc_firstRowN}

| Name | Type | Description |
|-|-|-|
| firstRow | Number | The first row to appear in the list. Default: First row of the current view. |
[Table 25. Parameters]

{#GLNEx-refresh_N_S__table_plc_vmx_15} {#GLNEx-refresh_N_S__table_qlc_vmx_15__entry__2}

| Type | Description |
|-|-|
| None |   |
[Table 26. Returns]

{#GLNEx-refresh_N_S__table_qlc_vmx_15}  
The following example shows how to call the method.

    g_list.addFilter("active=true");
    g_list.refresh();

## GlideList (Next Experience) - refreshWithOrderBy(Number firstRow) {#ariaid-title15}

Refreshes the list. The orderBy part of the list filter is included if it is specified for the list.
{#GLNEx-refreshWithOrderBy_N_S__table_rlc_vmx_15__entry__3}{#GLNEx-refreshWithOrderBy_N_S__gList_parmDesc_firstRowN}

| Name | Type | Description |
|-|-|-|
| firstRow | Number | The first row to appear in the list. Default: First row of the current view. |
[Table 27. Parameters]

{#GLNEx-refreshWithOrderBy_N_S__table_rlc_vmx_15} {#GLNEx-refreshWithOrderBy_N_S__table_slc_vmx_15__entry__2}

| Type | Description |
|-|-|
| None |   |
[Table 28. Returns]

{#GLNEx-refreshWithOrderBy_N_S__table_slc_vmx_15}  
The following example shows how to call the method.

    g_list.refreshWithOrderBy();

## GlideList (Next Experience) - setFilter(String filter) {#ariaid-title16}

Sets the encoded query string for the list, ignoring the orderBy and groupBy parts of the query string.
See also [addFilter()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-addFilter_S "Adds a single term to the list query filter.").
{#GLNEx-setFilter_S__table_tlc_vmx_15__entry__3}{#GLNEx-setFilter_S__gList_parmDesc_filter}

| Name | Type | Description |
|-|-|-|
| filter | String | Encoded query string in standard Glide format. See [Encoded query strings](https://www.servicenow.com/docs/access?context=c_EncodedQueryStrings&version=xanadu&pubname=xanadu-platform-user-interface&ft:locale=en-US). |
[Table 29. Parameters]

{#GLNEx-setFilter_S__table_tlc_vmx_15} {#GLNEx-setFilter_S__table_ulc_vmx_15__entry__2}

| Type | Description |
|-|-|
| None |   |
[Table 30. Returns]

{#GLNEx-setFilter_S__table_ulc_vmx_15}  
The following example shows how to restrict list results to active records.

    g_list.setFilter("active=true");
    g_list.refresh();

## GlideList (Next Experience) - setGroupBy(String groupBy) {#ariaid-title17}

Sets the list groupBy criteria for a single field.
See also:

* [getGroupBy()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-getGroupBy "Returns the field or comma-separated list of fields that are used to group the list.")
* [getQuery()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-getQuery_O "Returns the encoded query string for the list.")
{#GLNEx-setGroupBy_S__ul_yns_wpt_xrb}
{#GLNEx-setGroupBy_S__table_wv1_k4x_15__entry__3}{#GLNEx-setGroupBy_S__gList_parmDesc_groupByS}

| Name | Type | Description |
|-|-|-|
| groupBy | String | The groupBy criteria for the list. |
[Table 31. Parameters]

{#GLNEx-setGroupBy_S__table_wv1_k4x_15} {#GLNEx-setGroupBy_S__table_xv1_k4x_15__entry__2}

| Type | Description |
|-|-|
| None |   |
[Table 32. Returns]

{#GLNEx-setGroupBy_S__table_xv1_k4x_15}  
The following example shows how to group listed records by Caller ID.

    g_list.setGroupBy("caller_id");
    g_list.refresh();

## GlideList (Next Experience) - setOrderBy(String orderBy) {#ariaid-title18}

Sets the orderBy criteria for the list.
For
a single order by field, use orderBy field or
orderByDesc field. For multiple fields,
use `orderByField1^orderByField2^orderByField3`.
orderBy specifies ascending order and orderByDesc specifies
descending. These prefix strings are optional. If not specified,
orderBy is the default order.  
See also:

* [getOrderBy()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-getOrderBy "Returns the first field used to order the list.")
* [getQuery()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-getQuery_O "Returns the encoded query string for the list.")
* [sort()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-sort_S "Sorts the list in ascending order and sets the field as an orderBy column.")
* [sortDescending()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-sortDescending_S_N "Sorts a single field in the list in descending order and sets the field as an orderByDescField column.")
{#GLNEx-setOrderBy_S__ul_yns_wpt_xrb}
{#GLNEx-setOrderBy_S__table_yv1_k4x_15__entry__3}{#GLNEx-setOrderBy_S__gList_parmDesc_orderByS}

| Name | Type | Description |
|-|-|-|
| orderBy | String | Single or multiple orderBy fields. |
[Table 33. Parameters]

{#GLNEx-setOrderBy_S__table_yv1_k4x_15} {#GLNEx-setOrderBy_S__table_zv1_k4x_15__entry__2}

| Type | Description |
|-|-|
| None |   |
[Table 34. Returns]

{#GLNEx-setOrderBy_S__table_zv1_k4x_15}  
The following example shows how to order the list by the value of the Priority field.

    g_list.setOrderBy("priority");
    g_list.refresh();

## GlideList (Next Experience) - setRowsPerPage(Number rows) {#ariaid-title19}

Sets the number of rows per page to display.
{#GLNEx-setRowsPerPage_N__table_aw1_k4x_15__entry__3}

| Name | Type | Description |
|-|-|-|
| rows | Number | The number of rows to display. |
[Table 35. Parameters]

{#GLNEx-setRowsPerPage_N__table_aw1_k4x_15} {#GLNEx-setRowsPerPage_N__table_bw1_k4x_15__entry__2}

| Type | Description |
|-|-|
| None |   |
[Table 36. Returns]

{#GLNEx-setRowsPerPage_N__table_bw1_k4x_15}  
The following example shows how to limit results to 50 rows per page.

    g_list.setRowsPerPage(50);
    refresh();

## GlideList (Next Experience) - sort(String field) {#ariaid-title20}

Sorts the list in ascending order and sets the field as an orderBy column.
See also:

* [getOrderBy()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-getOrderBy "Returns the first field used to order the list.")
* [getQuery()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-getQuery_O "Returns the encoded query string for the list.")
* [setOrderBy()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-setOrderBy_S "Sets the orderBy criteria for the list.")
* [sortDescending()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-sortDescending_S_N "Sorts a single field in the list in descending order and sets the field as an orderByDescField column.")
{#GLNEx-sort_S__ul_yns_wpt_xrb}  
Note:  
This method does not require the refresh() method.
{#GLNEx-sort_S__table_uks_xpx_15__entry__3}

| Name | Type | Description |
|-|-|-|
| field | String | Field to use to sort the list. |
[Table 37. Parameters]

{#GLNEx-sort_S__table_uks_xpx_15} {#GLNEx-sort_S__table_vks_xpx_15__entry__2}

| Type | Description |
|-|-|
| None |   |
[Table 38. Returns]

{#GLNEx-sort_S__table_vks_xpx_15}  
The following example shows how to sort results by the Number
field.

    g_list.sort("number");

## GlideList (Next Experience) - sortDescending(String field, Number amount) {#ariaid-title21}

Sorts a single field in the list in descending order and sets the field as an orderByDescField column.
See also:

* [getOrderBy()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-getOrderBy "Returns the first field used to order the list.")
* [getQuery()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-getQuery_O "Returns the encoded query string for the list.")
* [setOrderBy()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-setOrderBy_S "Sets the orderBy criteria for the list.")
* [sortDescending()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GLNEx-sortDescending_S_N "Sorts a single field in the list in descending order and sets the field as an orderByDescField column.")
{#GLNEx-sortDescending_S_N__ul_yns_wpt_xrb}  
Note:  
This method does not require the refresh() method.
{#GLNEx-sortDescending_S_N__table_wks_xpx_15__entry__3}

| Name | Type | Description |
|-|-|-|
| field | String | Field to use to sort the list. |
[Table 39. Parameters]

{#GLNEx-sortDescending_S_N__table_wks_xpx_15} {#GLNEx-sortDescending_S_N__table_xks_xpx_15__entry__2}

| Type | Description |
|-|-|
| None |   |
[Table 40. Returns]

{#GLNEx-sortDescending_S_N__table_xks_xpx_15}  
The following example shows how to sort results by the Number field in descending
order.

    g_list.sortDescending("number");


