# How to sort a table in Google Sheets

**URL:** <https://community.thunkable.com/t/how-to-sort-a-table-in-google-sheets/2483680>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [June 26, 2023, 6:09pm UTC](https://community.thunkable.com/t/how-to-sort-a-table-in-google-sheets/2483680 "2023-06-26T18:09:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![2021457646ij5](https://avatars.discourse-cdn.com/v4/letter/2/9de053/32.png) [@2021457646ij5](https://community.thunkable.com/u/2021457646ij5)\
**Post date:** [June 26, 2023, 6:09pm UTC](https://community.thunkable.com/t/how-to-sort-a-table-in-google-sheets/2483680/1 "2023-06-26T18:09:33Z")

</div>

I have read a lot about sorting tables using lists but I haven’t found one that is the same as my problem. I am trying to make a timetable app. and the main feature is that it can display the class that is the closest to the current time. The user can enter their classes on different days but it would not be sorted. For example, a user can input that class A he has at 13:05 and submits it. Afterwards he could input class B that is 12:05. in the table class A comes first before class B. i have tried using bubble sort and it wouldn’t work.

 ![thunkprob1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/6/462de5ee3f2eca24bac4154b026e585762acb89f.png)

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/6/06f28c2f371f04a3b1d87b98d635ba8934b6fcbb.png)

---

<div class="post-metadata">

**Author:** ![Hayder](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/hayder/32/153829_2.png) [@Hayder](https://community.thunkable.com/u/Hayder)\
**Post date:** [June 26, 2023, 8:26pm UTC](https://community.thunkable.com/t/how-to-sort-a-table-in-google-sheets/2483680/2 "2023-06-26T20:26:59Z")

</div>

Hi  
If you use Airtable instead of Googlesheet then it is easy to sort your data according to any column you like.

---

<div class="post-metadata">

**Author:** ![2021457646ij5](https://avatars.discourse-cdn.com/v4/letter/2/9de053/32.png) [@2021457646ij5](https://community.thunkable.com/u/2021457646ij5)\
**Post date:** [June 27, 2023, 3:18pm UTC](https://community.thunkable.com/t/how-to-sort-a-table-in-google-sheets/2483680/3 "2023-06-27T15:18:01Z")

</div>

isn’t there any way for me to use sheets?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [September 25, 2023, 3:18pm UTC](https://community.thunkable.com/t/how-to-sort-a-table-in-google-sheets/2483680/4 "2023-09-25T15:18:04Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
