Java ja Javascript Order By Date