Categories October Surprise 2024 about_Hash_Tables – PowerShell | Microsoft Learn Post author By Post date October 30, 2025 Although you can’t sort a hashtable, you can use the GetEnumerator() method of hashtables to enumerate the keys and values, and then use the Sort-Object cmdlet to sort the enumerated values for display.