Search notes:

Registry: Sorting of items

$null = new-item         -path HKCU:\Software\tq84-reg-sort-test

$null = new-itemProperty -path HKCU:\Software\tq84-reg-sort-test -name "xDEF"  -value  test
$null = new-itemProperty -path HKCU:\Software\tq84-reg-sort-test -name "x-abc" -value  test
$null = new-itemProperty -path HKCU:\Software\tq84-reg-sort-test -name "x.mno" -value  test
$null = new-itemProperty -path HKCU:\Software\tq84-reg-sort-test -name "x-PQR" -value  test
$null = new-itemProperty -path HKCU:\Software\tq84-reg-sort-test -name "xghi"  -value  test
$null = new-itemProperty -path HKCU:\Software\tq84-reg-sort-test -name "x JKL" -value  test
In cmd.exe, reg query shows the entries in the order in which they were created:
C:\> reg query HKCU\Software\tq84-reg-sort-test\
PowerShell shows the same order:
PS C:\> get-item HKCU:\Software\tq84-reg-sort-test | foreach-object { $_.property }
xDEF
x-abc
x.mno
x-PQR
xghi
x JKL
However, regedit.exe shows the entries sorted. Especially interesting is that hyphens are not considered for sorting:
Cleaning up
remove-item         -path HKCU:\Software\tq84-reg-sort-test  -recurse

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1740081298, '3.21.113.43', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/registry/sorting(58): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78