Fix sorting with unsafe() columns

And also sorting with columns === undefined.

Fixes #29