I've implemented a quick sorting solution for classpath, I hope it helps.
I've tested it and its working just fine.
Modified container reordering so that JRE comes before Maven. The
opposite created some java compilation errors with generics for
Fixed sorting issue for Classpath.