% This file is embedded in datatool-user.pdf version 3.4.2 2025-11-06
% Example 55 Sorting Lists with \dtlsortlist (Case vs No Case)
% Label: "ex:sortlistcharcase"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{datatool-base}
\newcommand{\mylist}{sea, sea lion, Sealyham, seal, sealant, sealing wax}

\begin{document}
\dtlsortlist{\mylist}{\dtlcompare}
Case-sensitive: \DTLformatlist{\mylist}. 

\dtlsortlist{\mylist}{\dtlicompare}
Case-insensitive: \DTLformatlist{\mylist}. 
\end{document}
