EventComparatorByNewMessage Comparator<EventObserverFriendModel> { compare(EventObserverFriendModel lhs, EventObserverFriendModel rhs) { publishTime = ; publishTime2 = ; (lhs == ) { publishTime = ; } { publishTime = lhs.getChatMessage().getTimeStampValue(); } (rhs == ) { publishTime2 = ; } { publishTime2 = rhs.getChatMessage().getTimeStampValue(); } (publishTime > publishTime2) {//正常狀況 前 大於 後 返回爲1 升序 ; } (publishTime < publishTime2) { ; } ; } }