# Sort Files by Created Date

While some work as expected, others may not align with its intended purpose. Therefore, we have provided a **Sort files by created date** feature that will not affect to your document library organization when modifying the files. \
\
In this doc, we will guide you how to set sort files by created date.

As usually, you need to create your document library shortcode to display it on the frontend first.

<figure><img src="https://3041978267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyIWF9CNHLQhdztdjt8Uo%2Fuploads%2FbDwm1uvUEmvq9yPROZQd%2Fcreate%20doc%20shortcode.png?alt=media&#x26;token=5c49ac3d-a19f-4ea7-a1f4-9086b4d18258" alt=""><figcaption><p>Create document shortcode</p></figcaption></figure>

In **Extra Column** field, you will see the **Created date** option to add it.\
\
And last one, choose **Created date** for sorting instead of **Modified date** option.

<figure><img src="https://3041978267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyIWF9CNHLQhdztdjt8Uo%2Fuploads%2FG8uLKzCXcRtYE7M1ikTM%2Ffrontend.jpg?alt=media&#x26;token=91cc02d7-d8ee-49eb-9064-0d05ebe08377" alt=""><figcaption><p>Display on the Frontend</p></figcaption></figure>

Now, you have succeeded.
