Fix problems in column sorting

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>
Merge pull request #340 from cbmi/issue-325

Fix problems with column sorting