# Random Sort in Swipe style

**URL:** <https://community.glideapps.com/t/random-sort-in-swipe-style/28741>\
**Category:** Ask for Help\
**Created:** [July 5, 2021, 12:23pm UTC](https://community.glideapps.com/t/random-sort-in-swipe-style/28741 "2021-07-05T12:23:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NesherD](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nesherd/32/27509_2.png) [@NesherD](https://community.glideapps.com/u/NesherD)\
**Post date:** [July 5, 2021, 12:23pm UTC](https://community.glideapps.com/t/random-sort-in-swipe-style/28741/1 "2021-07-05T12:23:03Z")

</div>

Hi,  
I am trying to implement in swipe style the random order of rows. In a list style it is working good and easy as in the Inline/ options I selected “Sort Randomly”. But in the Swipe style I cannot find this sorting feature - not there nor anywhere. Can anyone suggest and help?

Thanks a lot!

---

<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:** [July 5, 2021, 1:04pm UTC](https://community.glideapps.com/t/random-sort-in-swipe-style/28741/2 "2021-07-05T13:04:39Z")

</div>

There is no controllable sort in the Swipe style layout. It always looks for the oldest swipe date and the row with the oldest date will be the next card it swipes to.

---

<div class="post-metadata">

**Author:** ![NesherD](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nesherd/32/27509_2.png) [@NesherD](https://community.glideapps.com/u/NesherD)\
**Post date:** [July 5, 2021, 1:54pm UTC](https://community.glideapps.com/t/random-sort-in-swipe-style/28741/3 "2021-07-05T13:54:34Z")

</div>

Thanks Jeff. And there’s no hack for this random swipe? - it will be very dull to swipe in the same order time after time, isn’t it?

---

<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:** [July 5, 2021, 2:22pm UTC](https://community.glideapps.com/t/random-sort-in-swipe-style/28741/4 "2021-07-05T14:22:50Z")

</div>

There is, but it’s a little more involved and it depends on how your data is set up. You can filter your list so only the first row is ever displayed. This will cause it to swipe to the same row every time. Then create a custom action so whenever you swipe, you set a column value or increment a value. This value is then used to set a single relation and a series of lookups that you can then display in your swipe card.

This isn’t an exact example, but I use a similar method in the swipe tab here. It not exactly a random swipe in my case, but maybe it will give you some ideas on how to structure things:

> **[Calendar Concept](https://nonchalant-creature-8307.glideapp.io/)**

---

<div class="post-metadata">

**Author:** ![NesherD](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nesherd/32/27509_2.png) [@NesherD](https://community.glideapps.com/u/NesherD)\
**Post date:** [July 5, 2021, 2:35pm UTC](https://community.glideapps.com/t/random-sort-in-swipe-style/28741/5 "2021-07-05T14:35:22Z")

</div>

Thank You so much Jeff!  
I will try to understand it and look further into and to crack it.  
Have a nice day!

---

<div class="post-metadata">

**Author:** ![Butter-Bee](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/butter-bee/32/15102_2.png) [@Butter-Bee](https://community.glideapps.com/u/Butter-Bee)\
**Post date:** [March 16, 2022, 7:19am UTC](https://community.glideapps.com/t/random-sort-in-swipe-style/28741/6 "2022-03-16T07:19:18Z")

</div>

Nesher,  
Did you ever find any success with this?

---

<div class="post-metadata">

**Author:** ![NesherD](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nesherd/32/27509_2.png) [@NesherD](https://community.glideapps.com/u/NesherD)\
**Post date:** [March 16, 2022, 12:27pm UTC](https://community.glideapps.com/t/random-sort-in-swipe-style/28741/7 "2022-03-16T12:27:39Z")

</div>

No i did not at the time. If you would find I’ll be happy to know. Thanks!
