I have three columns -
TheDate
TheID
TheType
If TheID cannot be null then just change the TheID to null as part of the order by where TheType is a special value:
order by TheDate, case TheType when 101 then null else TheID end nulls last