# Sorting Documents

This feature allows users to sort documents by selecting a specific order on the platform homepage.

The following options are provided to display the available documents on the platform homepage:

**1.        Alphabetical/Name (Ascending and Descending)**

**2.       Date (Ascending and** **Descending)**

**3.      Custom**

* Click the ***Sort By*** icon on the platform homepage.

&#x20;      ![](/files/uDcVckZmaQfLqcjzeVHl)

* A context menu opens with the following sorting options:

{% tabs %}
{% tab title="Name" %} <img src="/files/Hoxt51NWg4I6acPrxOLv" alt="" data-size="line">You can sort documents by their names in ascending or descending order (Ascending is the default order).
{% endtab %}

{% tab title="Date" %}
&#x20; <img src="/files/2K6V0Hm36gxDbPfWSEdv" alt="" data-size="line">You can sort documents by data using this option (Ascending is the default order).
{% endtab %}

{% tab title="Custom" %} <img src="/files/nAERDJQpUXjDseRHKeLj" alt="" data-size="line">You can manually drag and change the order of documents.
{% endtab %}

{% tab title="None" %}
&#x20;<img src="/files/YXWBsTtXAMObnwq7oi4B" alt="" data-size="line">You can remove the impact of the applied **Sort by** option by selecting the **None** option.
{% endtab %}
{% endtabs %}

<details>

<summary>How to apply a sorting option to the documents?</summary>

Select an option from the context menu. E.g., The Date option is selected in the following image:&#x20;

![](/files/K5304bT73CYO1ZQLHr9U)

The platform documents get sorted as per the selected order. E.g., The following image shows documents sorted by date.

![](/files/Mk8ILgnOFSUFGsQUcnzi)

</details>

<details>

<summary>Custom Sort</summary>

* The user can set a customized order of the document by choosing the **Custom** order option.
* By selecting the **Custom** option, the user gets directed to a new window.
* Set a customized order of displaying the available documents or folders by using the given arrows.

&#x20;     ![](/files/Okcy5HasYAUQEJ0jcG7P)

* The records will get shuffled as per the selected order.
* Click the **Save** option to save your selected order of display.

&#x20;     ![](/files/00gmkyyshP5J7R08FcNH)

</details>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>*

1. *The platform homepage displays the saved documents as **My Documents** by default.*&#x20;
2. *A **Search Bar** has been provided on the Platform homepage to search the specific folders and files.*
3. ***Documents** can be sorted in ascending order by default; users need to click on the Name option again to sort the documents in descending order.*
   {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bdb.ai/bdb-documentation/core-platform/getting-started/homepage/sorting-documents.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
