let's suppose you have to sort list X based on parallel list Y.
For 2 list of same size and with any type
But this question can also mean that you want to sort a list with another one that have the same elements type but different size.
Exemple: you want to sort letters in a custom order