Make nan types sort to the end.
Add a test for indexing columns containing a nan in the first row.