second part and closes #180: add preference. Setting of sort order has been moved to provider again, since it must be picked up after user changes value, and notifychange is called