fixed sorting of numeric tags when they have nulls