Fix problems with column sorting

Fix #325.

Both of these issues were caused by bad checks caused by using === in
place of == when comparing undefined to null. The more generic
truthiness test is now used instead of specifically checking against
something using ===.

Signed-off-by: Don Naegely <naegelyd@gmail.com>