Singleton pattern for sorts in java backend

ready for review
I'd feel better about you adding Apache Collections 4.0 if you removed the references to the old org.apache.commons.collections15 from sourceforge.net.