getlistrank function

To get the rank of a list from its name