GoodData.UI API reference
  • GoodData.UI
  • Docs & APIs
  • Developers
  • GoodData.CN
  • GoodData.UI
  • Docs & APIs
  • Get GoodData.CN Community Edition
  • 10.26.0
  • Code samples
  • Gallery
  • GitHub

allSorted()

Home > @gooddata/sdk-backend-spi > IPagedResource > allSorted

IPagedResource.allSorted() method

Request all the pages merged in a single array and sort them using the given comparator.

Signature:

allSorted(compareFn: (a: TItem, b: TItem) => number): Promise<TItem[]>;

Parameters

ParameterTypeDescription
compareFn(a: TItem, b: TItem) => numberthe compare function to use - the semantics are the same os for the Array.sort parameter

Returns:

Promise<TItem[]>

promise of an array for all the pages' contents in one array

Remarks

This MUST respect all the original query settings except for the paging settings (e.g. offset, limit).

  • IPagedResource.allSorted() method
  • Parameters
  • Remarks
GoodData resources:
  • Documentation
Follow the community:
  • Community
Copyright © 2007–2025 GoodData Corporation. All Rights Reserved. Code licensed under a dual license - CC BY‑NC 4.0 for trial experience and GoodData.UI EULA for commercial use