fn format_row(row: &Row, types: &[Type], mode: Mode, sort: &Sort) -> Vec<String>