sort records alphabetically before generating docs