Is there a way to keep the order of keys in a hashtable as they were added? Like a push/pop mechanism.
Example:
$hashtable = @{} $hashtable.Add(\"Sw
function global:sortDictionaryByKey([hashtable]$dictionary) { return $dictionary.GetEnumerator() | sort -Property name; }