> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: isAscending() # Method package: wixData # Method menu location: wixData --> WixDataDistinct --> isAscending # Method Link: https://dev.wix.com/docs/velo/apis/wix-data/wix-data-distinct/is-ascending.md # Method Description: Whether the results of the distinct query are sorted by the distinct property in ascending order. The `isAscending()` method returns `true` if the results of the distinct query are sorted in ascending order by the distinct property. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Check whether the results of the distinct property are sorted in ascending order ```javascript // Whether the results of the distinct property are sorted in ascending order let ascending = query.distinct.isAscending(); ``` ## Check the result sort order and skip the first 10 results ```javascript // In data.js export function myCollection_beforeDistinct(distinct, context) { // Check whether the distinct query returns results in ascending order. const ascending = distinct.isAscending(); // If the results are ordered in ascending order, skip the first 10 results if (ascending) { distinct = distinct.skip(10); } return distinct; } ``` ---