Sort reference alphabetically