<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% This file is embedded in datatool-user.pdf version 3.4 2025-04-03
% Example 61 Sorting Lists with \DTLsortwordlist and UTF-8 and Localisation Support
% Label: "ex:sortlistutf8locale"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage[utf8]{inputenc}
\usepackage[locales={en-GB}]{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}
</pre></body></html>