Fixed ordering via snippet from StackOverflow for lists.