As one part of my thesis, I have more than 20 tables. I need to sort their entries alphabetically.
The tables are in following format:
\begin{table}
\label{tab:first}
\begin{tabular}{lllllll}
Language & Syllable & IPA & VIS & VDS & CS & CVS \\ \hline
Malayalam & k & k & \Mal{ഈ}\normalfont & \Mal{ീ}\normalfont iː & \Mal{ക} \normalfont k & \Mal{കീ}\normalfont kiː \\
Tamil & ~ & ~ & ~ & ~ & ~ & ~ \\
Kannada & ~ & ~ & ~ & ~ & ~ & ~ \\
\end{tabular}
\caption{Table contains syllable in IPA, VIS-Vowel Independent Syllable, VDS-Vowel Dependent Symbol, CS-Consonant Symbol, and CVS Consonant with Vowel Symbol.}
\end{table}
I need to sort the tables according to the content of first column. Any specific package or macro for that purpose.
Best Answer
The following should do the job (script and test file below):
test.tex
ltx-table_sort.py