added method sortProcedure(String inSortName, Word[] inSet) to remove
redundant code in the menu while calling for sorts