Given we use our own total_compare method we can sort NaN's but from semantic point of view min/max should be non nan