fixed sort direction term.
Created abstract specification base class