Hash Table - Sort in order of how they are input

前端 未结 1 905
一生所求
一生所求 2020-12-12 03:35

I have a hash table here and I have it eventually outputting to an Excel spreadsheet, but the issue appears to be the way the system sorts the hash table by default. I want

相关标签:
1条回答
  • 2020-12-12 04:30

    Create $machineUptime as an ordered hashtable (provided you have PowerShell v3 or newer):

    $machineUptime = [ordered]@{}
    
    0 讨论(0)
提交回复
热议问题