Dynamically getting an index field from a collection list item name?

Hello all,

I’ve started using webflow for my portfolio and I’m loving it !
My needs are a bit particular as I need to have different unique pages for each of my projects (at least some).

I can rather easily create them stil leveraging the CMS power by inserting a collection list inside a static page, and filter it’s content by a sorting index I made to populate a component (typically the header).
I would also love to have Prev/Next links at the bottom of the page, so I added two other collection lists, and filtered the display to “sorting index -1” on the left and “sorting index +1” on the right.

It works nicely, but in case of any projects reordering (whether modifying the sorting index field myself or using the excellent Flowguys toolkit), it will mess up everything because obviously the sorting index refering to a project will have changed.
For the header the fix is easy, I just have to filter by projet Name to get the right content regardless of it’s sorting index number, but I don’t know how to handle the Prev/Next then !
Conceptually, it would be great to be able, from a Project’s name, to be able to dynamically go fetch the previous and next indexes and use them as sorting filters in the collection lists used for Prev/Next.
I don’t even know if that’s possible via code override…

I hope that you understand what I am into and what I’m looking for to do, and thank you in advance if you can help me on this !

Regards

Basile