Gracefully handle null values in case-insensitive sorting