support sorting by the user provided compartors. fixed #2
Merge pull request #5 from Jimmy-Shi/issues-2

support sorting by the user provided compartors. fixed #2