(1) Bugfix: Correctly determine if viewconfig changed, (2) allow sorting
in both directions