Sort/Map List using another List

Hello! I’ve been stuck on this for quite a while and i’m sure there is a way to do this because it seems quite basic.

I have a list of Things. [Thing 1, Thing2, Thing3, Thing 4 etc…]. There is a field called ‘name’. The above list’s names are [‘Bob’,‘John’,‘Alice’,‘Marley’]

How do i sort the list of things following the same order as a Second Text list which is a list of names? ie [‘Marley’,‘Alice’,‘John’,‘Bob’] resulting in a sorted list [Thing4,Thing3,Thing2,Thing1].

Assuming there’s no field to sort by that would result in that order i would think you just set the list manually. First item is thing where name = Marley, second in list is thing where name = Alice, etc.

1 Like