The Collection Tree Plugin allows for simple sorting of your collections. It incorporates a view that lets you easily drag and drop your items, supporting nested compatibility.
Install the plugin by running the following command:
npm install @wgr-sa/strapi-plugin-collection-tree
Navigate to the settings page and select the models that you want to incorporate into the tree structure. If necessary, you can modify the names of the tree fields.
Go to the Collection Tree page, select the collection you wish to sort, and use drag and drop to arrange items. Remember to save your changes once you're done.
You can retrieve sorted elements by adding sort=lft:ASC to your query parameters.
This plugin is licensed under the MIT License. Refer to the LICENSE file for more information.