Fixes #705 shift-click unsorted table resulted in TypeError

Shift-click from unsorted was populating `var sortBy = this.get('sortBy')`, then assuming it was populated in a `for` loop.

Fix and tests added.