Enabling sorting by part of speech (or any other annotation)

* also simplified a few queries in OmegaWikiRecordSets where
the table 'dm' was not needed
* rewritten function getExpressionsRecordSet using other functions
that already exist

Change-Id: Ibbab3db13135a8a68ea52d570ca02abe2a6804f4