Fallback on sorting by location/library code if there is no configured name

From time to time we'll get locations that aren't in our translation table.  This will sort on the code if there is no configured name for library or location.