[#16] Use stl sorting function in CommandAnalysis.