For each property you can specify whether to sort the results in descending order or ascending order. In this example our first results would be the ones changed most recently.
You still need a query, to get some results to sort.
Note that the sort itself is an array — hence we can add multiple sort options and they'll be evaluated in order (to sort by multiple properties). In this example our first results would be the ones changed most recently.
For any results that have identical modification dates, we would then sort within those results to present the oldest (created) results first.
Run the search
8 91011
IndexSearchResponseresponse=index.search();for(Assetresult:response){// Do something with the ordered results...}
Annotated sort options, as you would define them in the Python SDK
For each property you can specify whether to sort the results in descending order or ascending order. In this example our first results would be the ones changed most recently.
In this example, our first results would be the oldest ones (based on when they were created).
You still need a query, to get some results to sort.
Note that the sort itself is an array — hence we can add multiple sort options and they'll be evaluated in order (to sort by multiple properties). In this example our first results would be the ones changed most recently.
For any results that have identical modification dates, we would then sort within those results to present the oldest (created) results first.
Run the search
14151617
client=AtlanClient();response=client.asset.search(index)forresultinresponse:# Do something with the ordered results...
Annotated sort options, as you would define them in the Java SDK
For each property you can specify whether to sort the results in descending order or ascending order. In this example our first results would be the ones changed most recently.
You still need a query, to get some results to sort.
Note that the sort itself is an array — hence we can add multiple sort options and they'll be evaluated in order (to sort by multiple properties). In this example our first results would be the ones changed most recently.
For any results that have identical modification dates, we would then sort within those results to present the oldest (created) results first.
Run the search
8 91011
valresponse=index.search()for(resultinresponse){// Do something with the ordered results...}
You still need a query, to get some results to sort.
Note that the sort itself is an array — hence you can sort by multiple properties.
For each property you can specify whether to sort the results in descending order or ascending order. In this example our first results would be the ones changed most recently.
For any results that have identical modification dates, we would then sort within those results to present the oldest (created) results first.