---
id: 647e230c8acb466c97ccbef9
title: 'Challenge Project - Work with Variable Data in C#'
challengeType: 19
dashedName: challenge-project-work-with-variable-data-in-c-sharp
---

# --description--

This challenge will be partially completed on Microsoft's learn platform. Follow these instructions to complete the challenge:

1. Go to <a href="https://learn.microsoft.com/en-us/training/modules/challenge-project-work-variable-data-c-sharp/" target="_blank">https://learn.microsoft.com/en-us/training/modules/challenge-project-work-variable-data-c-sharp/</a> and complete all the tasks for the "Challenge Project - Work with Variable Data in C#" module. This is required to earn the "Work with Variable Data in C# Console Applications" trophy.
1. When you are finished, come back and correctly answer the question below.

# --question--

## --text--

To sort a string array, why is it be important to use the `String.Trim()` method on each array element before sorting?

## --answers--

Only string arrays with elements trimmed with `String.Trim()` can sort

---

`String.Trim()` removes leading white space that would sort before numbers and letters.

---

The array sort is noticeably faster using `String.Trim()` on each element.

## --video-solution--

2
