.Net Code:
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Collections; namespace ICompare测试 { class Program { static void Main(string[] args) { Process[] allprocess = Process.GetProcesses();//所有运行的进程 SortByProcessName cmpproname=new SortByProcessName(); SortByModuleName cmpmodulename=new SortByModuleName(); Array.Sort(allprocess, cmpproname); foreach (Process p in allprocess) {