title: Maintaining property order with get-member
body: <p>I have a query that grabs all the columns from a table then I do some work on it.  The problem is I work with the column names for an insert but they are in a different order because of Get-Member.  Is there a way to get the property names (column names) and maintain order or re-order the System.Data.DataRow.  I must maintain property types.</p>
  
  <p><strong>Commands:</strong>
  $dataColumns = $dataGatherOut | Get-Member -MemberType Property | Select-Object -ExpandProperty Name
  $dataColumns</p>
  
  <p><strong>Results:</strong>
  PS C:\Windows\system32> $dataColumns</p>
  
  <p>alpha</p>
  
  <p>check</p>
  
  <p>loan</p>
  
  <hr>
  
  <p><strong>Commands:</strong>
  $dataGatherOut</p>
  
  <p><strong>Results:</strong></p>
  
  <p>check                   : 1234</p>
  
  <p>loan                : Test Values</p>
  
  <p>alpha                   : 4568</p>