I use this WMI query to get all running processes: select * from Win32_Process
But I would like to have something like: select * from Win32_Process order by Name
Of course, with WMI, the latter option just doesn't work, so I'm wondering if there's another way to tell the system to order the info in some particular order or do I have to sort it myself?
And no, I'm not using any WMI component set, just the wbemdisp.tlb type library. (Simply because I'm calling WMI from a simple console application. I don't want the additional VCL overhead included in my project.)
I assume the answer is: sort it yourself. But if someone can provide me an alternative solution purely based on the WMI type library then he (or she) will earn the points.