# There is a way to use data grid sort by API?

**URL:** <https://community.weweb.io/t/there-is-a-way-to-use-data-grid-sort-by-api/17824>\
**Category:** How do I?\
**Tags:** data-grid\
**Created:** [April 17, 2025, 5:14pm UTC](https://community.weweb.io/t/there-is-a-way-to-use-data-grid-sort-by-api/17824 "2025-04-17T17:14:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![santiago](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@santiago](https://community.weweb.io/u/santiago)\
**Post date:** [April 17, 2025, 5:14pm UTC](https://community.weweb.io/t/there-is-a-way-to-use-data-grid-sort-by-api/17824/1 "2025-04-17T17:14:16Z")

</div>

hello everyone! i come with this query, in my project we need specifically a sort by using the API, in my table i do it by clicking on the header, that activates a workflow that calls the api with the sort, is there any way to do the same using data grid?

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [April 22, 2025, 11:48pm UTC](https://community.weweb.io/t/there-is-a-way-to-use-data-grid-sort-by-api/17824/2 "2025-04-22T23:48:27Z")

</div>

Hi @santiago 👋

Mmm I don’t think it’s possible at the moment. I tried disabling the native sort and creating a custom workflow to trigger an API call but there’s on “On column sort” action.

I’ll ask the team if it’s on the roadmap or if there’s another solution I overlooked.

---

<div class="post-metadata">

**Author:** ![santiago](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@santiago](https://community.weweb.io/u/santiago)\
**Post date:** [April 25, 2025, 2:35pm UTC](https://community.weweb.io/t/there-is-a-way-to-use-data-grid-sort-by-api/17824/3 "2025-04-25T14:35:11Z")

</div>

I solved forking the component and adding a “on sort” call, thank you!

---

<div class="post-metadata">

**Author:** ![raelyn](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/raelyn/32/2803_2.png) [@raelyn](https://community.weweb.io/u/raelyn)\
**Post date:** [April 28, 2025, 9:38am UTC](https://community.weweb.io/t/there-is-a-way-to-use-data-grid-sort-by-api/17824/4 "2025-04-28T09:38:17Z")

</div>

What do you mean by forking? Is that something we can do on weweb? trying to do the same thing… 🙂

---

<div class="post-metadata">

**Author:** ![ishika](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/ishika/32/13250_2.png) [@ishika](https://community.weweb.io/u/ishika)\
**Post date:** [April 28, 2025, 3:29pm UTC](https://community.weweb.io/t/there-is-a-way-to-use-data-grid-sort-by-api/17824/5 "2025-04-28T15:29:12Z")

</div>

Hey @raelyn!  
Yes, you can fork WeWeb elements and your custom coded components to create clones and customize them with AI/code.

Our [documentation](https://docs.weweb.io/weweb-ai/generating-custom-coded-components.html#example-fork-scenario) contains more info on this and here’s a [short demo](https://www.youtube.com/watch?v=2GTB4Jy2GBI) of the same.

Hope this helps 🙂

---

<div class="post-metadata">

**Author:** ![raelyn](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/raelyn/32/2803_2.png) [@raelyn](https://community.weweb.io/u/raelyn)\
**Post date:** [April 28, 2025, 3:57pm UTC](https://community.weweb.io/t/there-is-a-way-to-use-data-grid-sort-by-api/17824/6 "2025-04-28T15:57:49Z")

</div>

Hey! Thank you! Aside from this way Is there any way within weweb to filter / sort the data grid back end?
