Sort fixes

needed to set sortDirty after applying new filters; needed to move
sortDirty check earlier in data() call for nonpersistent views.