Comparison in a string list

Comparison in a string list

  
Dear Community,
I have a list of string with a particular order amongst them. 
I need to compare the strings according to that order.
The size of the list is <100, and the comparison would be infrequent.
What's a good way to do this?
Hi there!

If database is your list source, and that list does not change often, I would consider caching the query and iterating the result...