Sorting, MongoDB Connection, Java-XML