Implementing Comparable interface based on sequence.
imports
javadoc