Sorting with nulls

closes #939