title: Sort multiple values in hashtable in powershell
body: <p>I have a hashtable in PowerShell that looks like this:</p>
  
  <pre><code>Profil = @{
  "Jason" = "P2, P4, P1";
  "Mick" = "P1";
  "Rocky" = "P4, P5";
  "Natasha" = "P9, P4, P1"
  }
  </code></pre>
  
  <p>I need to remove whitespace and sort like :</p>
  
  <pre><code>Profil = @{
  "Jason" = "P1,P2,P4";
  "Mick" = "P1";
  "Rocky" = "P4,P5";
  "Natasha" = "P1,P4,P9"
  }
  </code></pre>
  
  <p>I try <code>foreach($value in $Profil.GetEnumerator() | Sort Value) {$value.Value}</code> but doesn't work</p>