[ByteArray] mimic Adobe behaviour on ReadObject
fix sorting of dates