use getManualSortingProperty() instead of hard coded property name "sorting".
Fix manual sorting switching and detection of group mode.