Make sure list name uses consistent query sort

Add an ORDER BY ID ASC clause to the list name => list ID resolution
code to ensure that we get consistent results when resolving names. It
should normally work without this, but the ORDER BY forms it up.