Moved to Java 8. Implment multiple sorting methods for MEA.