add sort into expr
change svm code to allow optimization
Merge pull request #139 from MaggieQi/master

add sort into expr