Documents can't be sorted.

I should really be testing this code before I push.