# Help with ListShifter Pro Sort when using Pagination

**URL:** <https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810>\
**Category:** Plugins\
**Created:** [November 6, 2023, 12:27pm UTC](https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810 "2023-11-06T12:27:38Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreas2](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@andreas2](https://forum.bubble.io/u/andreas2)\
**Post date:** [November 6, 2023, 12:27pm UTC](https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810/1 "2023-11-06T12:27:38Z")

</div>

Hi @keith

I am using ListShifter Pro to display a list of assets. I have pagination enabled (for example, showing 10 items per page). I am attempting to sort my list, but for some reason the sort only sorts the items of the current page. (I.e. if I am showing 10 items, only those 10 items will be sorted, not the entire list). Am I doing something wrong?

 ![SCR-20231106-aad-2](https://us1.discourse-cdn.com/bubble/original/3X/0/f/0ff729f6fb4b4acfa6694339b41fb697e5aea769.png)

I would expect to sort through all items of Listshifter and not just the current page. I am probably doing something wrong, but I cannot figure out what that is.

Thank you  
Andy

---

<div class="post-metadata">

**Author:** ![firstfifteensoftware](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/firstfifteensoftware/32/152406_2.png) [@firstfifteensoftware](https://forum.bubble.io/u/firstfifteensoftware)\
**Post date:** [November 6, 2023, 3:07pm UTC](https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810/2 "2023-11-06T15:07:41Z")

</div>

I wasn’t even aware that there was a ListShifter PRO.

I use the plain old ListShifter, but I don’t use the pagination. But I do let the user change the sort of the list.

![Screenshot 2023-11-06 at 10.06.26 AM](https://us1.discourse-cdn.com/bubble/original/3X/c/2/c22b3686b2953982e882972c5a22bc6d43881854.png)

Did you see what the results would be if you used “Original List” rather than “Shifted List”. Again, I don’t use PRO and I don’t use the pagination, but this is the first thing that I could come up with (which may be completely unhelpful).

---

<div class="post-metadata">

**Author:** ![andreas2](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@andreas2](https://forum.bubble.io/u/andreas2)\
**Post date:** [November 6, 2023, 3:29pm UTC](https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810/3 "2023-11-06T15:29:22Z")

</div>

Thank you. Using the “sorted” function does not actually seem to work in the workflow. The only way I have even gotten it sort is by using the “type of sort by list” as text. When changing it to the database type, and then “sorted by” does not work. Nothing ever sorts.

I definitely think it has to do with the pagination as it works fine sorting all the items on the current page. I guess what I need to figure out is how to sort all the items, but I don’t know if that’s maybe a bug in the listshifter or if I missing a step.

---

<div class="post-metadata">

**Author:** ![ihsanzainal84](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ihsanzainal84/32/245932_2.png) [@ihsanzainal84](https://forum.bubble.io/u/ihsanzainal84)\
**Post date:** [November 6, 2023, 4:08pm UTC](https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810/4 "2023-11-06T16:08:04Z")

</div>

Are you using the ListShifter’s Shifted List as your RG’s data source?

Mine works with no issues (with pagination)

---

<div class="post-metadata">

**Author:** ![andreas2](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@andreas2](https://forum.bubble.io/u/andreas2)\
**Post date:** [November 6, 2023, 4:49pm UTC](https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810/5 "2023-11-06T16:49:55Z")

</div>

That’s correct. The source is using ListShifterPro’s shifted list. I’ve replicated this on a test page for testing simplification. I’ve added a simple ListShifterPro like this

 ![SCR-20231106-gar-2](https://us1.discourse-cdn.com/bubble/original/3X/0/f/0f1d71411559d32a6fc7c52c189199c8fd18f914.png)

The repeating group uses the shifted list as data source

![SCR-20231106-gbk](https://us1.discourse-cdn.com/bubble/original/3X/7/a/7a4a459b8a2cd8043458cbd4f14b31297426569b.png)

I then added a button to call the sort workflow. The workflow consists of a single action “SORT List ListShifterPRO”

 ![SCR-20231106-gcp-2](https://us1.discourse-cdn.com/bubble/original/3X/7/b/7be5ee93787d1680478e8838fd3572f8ab087360.png)

There are about 100 items in the database, but pagination is only showing 10 at a time. When sorting only the 10 are currently sorted. Not sure what I am doing wrong…

---

<div class="post-metadata">

**Author:** ![ihsanzainal84](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ihsanzainal84/32/245932_2.png) [@ihsanzainal84](https://forum.bubble.io/u/ihsanzainal84)\
**Post date:** [November 7, 2023, 7:35am UTC](https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810/6 "2023-11-07T07:35:42Z")

</div>

In the “sort by list” parameter have you tried using the Original List instead of Shifted list.

---

<div class="post-metadata">

**Author:** ![andreas2](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@andreas2](https://forum.bubble.io/u/andreas2)\
**Post date:** [November 7, 2023, 11:56am UTC](https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810/7 "2023-11-07T11:56:42Z")

</div>

Yes, tried pretty much any way I could think of.

---

<div class="post-metadata">

**Author:** ![ihsanzainal84](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ihsanzainal84/32/245932_2.png) [@ihsanzainal84](https://forum.bubble.io/u/ihsanzainal84)\
**Post date:** [November 7, 2023, 2:29pm UTC](https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810/8 "2023-11-07T14:29:54Z")

</div>

Hmm… I’ll check my setup for these when i have the time. In the meantime does ListShifter’s lists in the Bubble debugger show the right number of items and in the sorted order?

---

<div class="post-metadata">

**Author:** ![ihsanzainal84](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ihsanzainal84/32/245932_2.png) [@ihsanzainal84](https://forum.bubble.io/u/ihsanzainal84)\
**Post date:** [November 7, 2023, 3:19pm UTC](https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810/9 "2023-11-07T15:19:27Z")

</div>

I just checked my setup and it looks like I was wrong. I was not using LS pagination mode for one of them, just the normal RG pagination.

The other that does use it **does** limit the number of items in it’s Original and Shifted Lists to the number of items per pagination. I’ve verified this in the debugger. After some thinking I remember experiencing a similar issue with extracting the list from ListShifter PRO in pagination mode. I worked around it but it was a little annoying.

What you can do is to use native RG pagination. Alternatively, you could store the master list in one List Shifter which will handle the sorting and then another List Shifter to handle the pagination. There’s no performance impact from daisy chaining in my experience.

Maybe if we all rub our hands together long enough, we might be able to summon @keith back from his sabbatical from Bubble.

---

<div class="post-metadata">

**Author:** ![andreas2](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@andreas2](https://forum.bubble.io/u/andreas2)\
**Post date:** [November 7, 2023, 3:27pm UTC](https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810/10 "2023-11-07T15:27:34Z")

</div>

Thank you for looking into this . I hope Keith can shed some light on this. I don’t believe I can go to using the repeating group (I am actually using the new Bubble Table) since I allow the user to set how many items they want to view. Otherwise I’d have to set a fixed number of items per page, which I don’t want to do.

---

<div class="post-metadata">

**Author:** ![khazaei](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/khazaei/32/256317_2.png) [@khazaei](https://forum.bubble.io/u/khazaei)\
**Post date:** [January 15, 2024, 12:13pm UTC](https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810/11 "2024-01-15T12:13:31Z")

</div>

@andreas2 were you able to find a solution for this? @Keith I have a similar issue here and the pagination doesn’t work on a sorted list for me.

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [January 15, 2024, 9:27pm UTC](https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810/12 "2024-01-15T21:27:43Z")

</div>

I know it’s hard to find stuff in the forums sometimes, but this is a frequently asked question. The answer is to sort your list in one List Shifter (so you can sort the entire list properly) and then feed the Shifted List of that List Shifter into a second one where you paginate.

Note that this defeats some of the advantages of pagination (as you’re loading the entire list in order to sort it), but that’s how you handle this case.

A List Shifter in pagination mode only “knows” about the items on the currently displayed page.

---

<div class="post-metadata">

**Author:** ![khazaei](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/khazaei/32/256317_2.png) [@khazaei](https://forum.bubble.io/u/khazaei)\
**Post date:** [January 16, 2024, 9:36am UTC](https://forum.bubble.io/t/help-with-listshifter-pro-sort-when-using-pagination/291810/13 "2024-01-16T09:36:42Z")

</div>

Thanks Keith! I will do a more thorough search next time 😉
