# How to maintain a list order after an action

**URL:** <https://community.glideapps.com/t/how-to-maintain-a-list-order-after-an-action/71523>\
**Category:** Ask for Help\
**Created:** [March 8, 2024, 6:30pm UTC](https://community.glideapps.com/t/how-to-maintain-a-list-order-after-an-action/71523 "2024-03-08T18:30:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian\_Klein](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/christian_klein/32/70950_2.png) [@Christian\_Klein](https://community.glideapps.com/u/Christian_Klein)\
**Post date:** [March 8, 2024, 6:30pm UTC](https://community.glideapps.com/t/how-to-maintain-a-list-order-after-an-action/71523/1 "2024-03-08T18:30:01Z")

</div>

I feel like there is an easy answer for this that I am missing.

Here is the use case:

The client has a list of 20 drivers who are on a list. When a significant weather event happens, they will call in a portion of that list to work. For this example, 5 of the 20 drivers.

Those drivers will open the app and designate whether they are coming to work or not. If they say they aren’t coming in, the 6th person in line gets called in.

The dilemma is that I must maintain that order regardless of whether that person answered the negative or the positive. Additionally, some drivers may be inactive due to an injury but must keep their order. Example: They need 5 drivers but the 2nd person on the list is injured and should be skipped while still maintaining their spot in the order. This would result in the 6th driver being called immediately.

The list continues to rotate and individuals maintain their specific spot.

Any ideas on how the logic of this should work?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 8, 2024, 8:02pm UTC](https://community.glideapps.com/t/how-to-maintain-a-list-order-after-an-action/71523/2 "2024-03-08T20:02:32Z")

</div>

Could you have a column to manually number each driver and then sort by that that numbered column?

---

<div class="post-metadata">

**Author:** ![Christian\_Klein](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/christian_klein/32/70950_2.png) [@Christian\_Klein](https://community.glideapps.com/u/Christian_Klein)\
**Post date:** [March 25, 2024, 8:49pm UTC](https://community.glideapps.com/t/how-to-maintain-a-list-order-after-an-action/71523/3 "2024-03-25T20:49:06Z")

</div>

I’m probably not fully understanding. Are you recommending creating a column with values from 1 to 20 and sorting by this?

The issue is that when the first five are called out, they must move to the bottom of the list. This could be solved by adding a value to each of these, but some individuals need to be skipped while still retaining their place on the list for the future.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 25, 2024, 9:03pm UTC](https://community.glideapps.com/t/how-to-maintain-a-list-order-after-an-action/71523/4 "2024-03-25T21:03:45Z")

</div>

How about this… Whenever driver is called out and answers that call, write the current date time to their row. Then sort in acending order by that date column.
