# Sorting the nomenclature description

I am using nomencl package to prepare the nomenclature for my thesis. In that, the package sorts the symbols as shown in Figure.

But I want the desription of the symbols in Right hand side to be sorted in alphabetical order without using prefix option as shown in Figure.

using of prefix option work consumes lot of time and manual effort. Kindly suggest solution.

MWE code:

\documentclass[a4paper]{report}
\usepackage{nomencl}
\makenomenclature
\begin{document}
\nomenclature{$\omega$}{Absolute Frequency}
\nomenclature{HOA}{Acetic acid}
\nomenclature{Al}{Aluminium}
\nomenclature{ASTM}{American Standard Testing Machine}
\printnomenclature
\nocite{*}
\bibliographystyle{thesis}
\bibliography{refpapers}
\end{document}

-
@egreg Added a MWE code. – vivek Oct 3 '12 at 18:14
@egreg Please note that the desription of the symbols are to be sorted. It was not the case in [tex.stackexchange.com/questions/23508/…. – vivek Oct 3 '12 at 19:39
Would \newcommand\Nomenclature[2]{\nomenclature[#2]{#1}{#2}} and then using \Nomenclature instead of \nomenclature work for you? – clemens Oct 3 '12 at 22:27
@cgnieder thanks. It works fine and as expected. – vivek Oct 4 '12 at 3:39
@cgnieder The question is reopened. Please post your comment as solution. The solution perfectly works. Thanks. – vivek Oct 18 '12 at 12:49

Per request turning my comment into an answer: you could define a command

\newcommand\Nomenclature[2]{\nomenclature[#2]{#1}{#2}}


that automatically inserts the description to the optional sorting argument of \nomenclature and then us it instead of nomenclature:

\documentclass[a4paper]{report}

\usepackage{nomencl}
\makenomenclature

\newcommand\Nomenclature[2]{\nomenclature[#2]{#1}{#2}}

\begin{document}
Text% to produce a non-empty page

\Nomenclature{$\omega$}{Absolute Frequency}
\Nomenclature{HOA}{Acetic acid}
\Nomenclature{Al}{Aluminium}
\Nomenclature{ASTM}{American Standard Testing Machine}

\printnomenclature

\end{document}


-