add java version for Sort-List