How to order a sublist based on the order of the values of a parameter

See if that helps…