Handle DBNull while sorting.