Added logic for sorting congregations.
Added ability to sort congregation list.

Also, the selection and editing of congregations is improved.