Sort categories in archives.