% This file is embedded in datatool-user.pdf version 3.0.1 2025-03-05 % Example 60 Sorting Lists with \DTLsortwordlist and UTF-8 and No Localisation Support % Label: "ex:sortwordlistutf8" % arara: pdflatex % arara: pdfcrop \documentclass[12pt]{article} \pagestyle{empty} \usepackage[utf8]{inputenc} \usepackage{datatool-base} \newcommand{\mylist}{elk, Æthelstan, Arnulf, elf,résumé, Óslác, élan, Aeolus, resume, elephant, zygote, élite, Valkyrie, Zulu, elbow, Adelolf, rose} \begin{document} \DTLsortwordlist{\mylist}{\DTLsortlettercasehandler} Case-sensitive: \DTLformatlist{\mylist}. \DTLsortwordlist{\mylist}{\DTLsortletterhandler} Case-insensitive: \DTLformatlist{\mylist}. \end{document}