# How do I force the SQL Plugin to Accurately Sort a Static Collection (Potential Bug)

**URL:** <https://community.weweb.io/t/how-do-i-force-the-sql-plugin-to-accurately-sort-a-static-collection-potential-bug/9642>\
**Category:** How do I?\
**Created:** [July 10, 2024, 10:01am UTC](https://community.weweb.io/t/how-do-i-force-the-sql-plugin-to-accurately-sort-a-static-collection-potential-bug/9642 "2024-07-10T10:01:18Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [July 10, 2024, 11:34am UTC](https://community.weweb.io/t/how-do-i-force-the-sql-plugin-to-accurately-sort-a-static-collection-potential-bug/9642/5 "2024-07-10T11:34:02Z")

</div>

As Mariano said, it’s quite dangerous if exposed - and abused. If you want to have Static collections, you can call Supabase via the REST endpoints that each Supa project has and use the REST Plugin in WeWeb to get Static Collections. As REST lets you have them. Then everything should work.

Supabase by default creates a REST API layer around your project (tables, functions etc.), you can write a stored procedure/view in Supa and call it via REST to get the data, it’s really as simple as that.

---

_[View the full topic](https://community.weweb.io/t/how-do-i-force-the-sql-plugin-to-accurately-sort-a-static-collection-potential-bug/9642)._
