add sort filter
add test case, found some issue and fixed them.
1) adjust the comments
2) change milestone to 1
3) add comments for the ignored case.
Merge pull request #609 from fbird/master

add sort filter