PowerShell Ordered Arrays: [ordered] Hashtables and Sorted Collections
A PowerShell ordered array is usually an ordered hashtable: put [ordered] in front of @{} and the keys stay in the order you typed them. Plain arrays already keep their order, so they don’t need anything extra: Below, I’ll add, insert, read and sort entries, then cover the collections that keep items sorted. I tested … Read more