Minor logging statement tweak.
Fixed endless sorting loop.

That occurred if a user had disabled metadata.