Use Comparable interface
Merge pull request #15 from PreetamJinka/issues/14

Use Comparable interface