Change sorting to rank nil greater than all other values

[Fix #26]