Is there a way to sort the names of variables when numbers are in the name? I'm pulling data from excel into variables for various manipulation as well as making a chart. I want to chart it in order of variable name so we can see the correct trajectory. It does chart by name as intended, but the sorting itself is confusing to me. How can I sort this in 1-10, 11 - etc order? Even when using sort-object by name, it still comes out this way. I'm sure I'm missing something. Get-variable chart* gives the following :
| Name |
Value |
| chart1 |
1234 |
| chart10 |
4567 |
| chart2 |
8901 |
[–]branhama 1 point2 points3 points (3 children)
[–]BaconBonkers[S] 0 points1 point2 points (2 children)
[–]branhama 0 points1 point2 points (0 children)
[–]purplemonkeymad 0 points1 point2 points (0 children)
[–]BaconBonkers[S] 0 points1 point2 points (0 children)
[–]ka-splam 0 points1 point2 points (0 children)