Is there a way I can sort the symbols (in some logical order) automatically in my LaTeX draft? Presently they come in the order I am defining them.
\clearpage % Start a new page
\lhead{\emph{Symbols}} % Set the left side page header to "Symbols"
\listofnomenclature{lll} % Include a list of Symbols (a two column table)
{
$y$ & State variable\\
$\mathbb{R}$ & Real space\\
$\bf{x}$ & Vector of training indipandent variables\\
${\mathbf{x}'}$ & Vector of testing indipandent variables
}

\bf. it's deprecated. also check the answer in this thread: https://tex.stackexchange.com/questions/348640/how-to-effectively-use-list-of-symbols-for-a-thesis – naphaneal Jun 06 '18 at 09:40\documentclass{...}and ending with\end{document}. – Troy Jun 12 '18 at 23:57