Added sorting to non-blackboard database dumping.