fix for trac:2978

    resultspec: treats None as smaller to anything

    This avoids useless 500 when the data set contains
    null datetimes
Don't want to check the result of the sorting ?