Dibatalkan

Sort news in Android listview according to date in "dd/MM/yyyy HH:mm" format in Firebase

I have data in Firebase with the following format in the picture as you see. I want to sort it according to date (newsDate) in descending order (latest on the top). I have added this to my code while I am retrieving data from Firebase:

[login to view URL]("newsDate").addChildEventListener(new ChildEventListener() {

// on child added methods

}

But this only does string sorting, so that order becomes like this: 04/08/2018 12:00, 13/08/2018 10:30, 30/07/2018 00:00

I know this is because of alphabetical sorting. Wondering how I can customize the sorting order with my date format (dd/MM/yyyy HH:mm) and also in descending order? Please note that I cannot change property of newsDate in Firebase to Timestamp or Millis.

Kemahiran: Algoritma, Android, Pengaturcaraan Pangkalan Data, Java, Mobile App Development

Lihat lagi: click button according date vba, sqlite android listview, android listview page, java sort date desc, java arraylist sort by date descending, lambda sort date, sort arraylist of date, how to sort date in selenium, sort dates in java, arraylist sort dates, sort date string android, android listview iphone, android listview sqlite result page showing data, android listview installed applications, android listview webview, android listview navigation, android listview level, android listview xml data, android listview title, memory leak android listview

Tentang Majikan:
( 3 ulasan ) BAKU, Azerbaijan

ID Projek: #17957238

10 pekerja bebas membida secara purata $21 untuk pekerjaan ini

IBRAHEEM93

hey sir we can format and sort data in local android to display sorted data we can format and sort data in local android to display sorted data regards ibraheem

$25 USD dalam sehari
(31 Ulasan)
4.5
vaiuu

Hi sir, I read your project description .I can do your project & able to run successfully. I have 6+ years experience for mobile application development & done over 200+ mobile apps by a good team members . It wil Lagi

$25 USD dalam sehari
(7 Ulasan)
3.7
ccaring

Hi, I can fix the issue to sort records based on date in Descending order. I have 2 years experience in Android developer. Waiting for positive response. Regards, Danish

$25 USD dalam sehari
(8 Ulasan)
3.3
vasundharamehta

I can give you the code required in an hour. Would you prefer me to edit it into your code base directly? Or should I send a code snippet which shows how the sorting would be done and you’ll modify it for your code usi Lagi

$15 USD dalam sehari
(1 Ulasan)
1.5
arcsoft16

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I am a Fu Lagi

$28 USD dalam 7 hari
(0 Ulasan)
0.0
priyankannishad

I can sort your firebase data. Hello My name is Priyanka We are a team of developers who are more into mobile technologies. My team having 4+ years of experience as an Android and iOS application developer. Lagi

$10 USD dalam sehari
(0 Ulasan)
0.0
VeniVidi11

it's good that you pasted the code i can se 2-3 ways to rectify this problem. drop me a message Hello I've extesive experience in both android and ios you can expect fluid functionality, smooth UI and internationa Lagi

$10 USD dalam sehari
(1 Ulasan)
0.0
Thent040799

Pls. Give me your project

$25 USD dalam sehari
(0 Ulasan)
0.0
almasmogaka

Hi, I have gone through your project proposal, skills required. Expertise I have as a software developer I will deliver as per your requirement. I look forward to hear form you soon. Thanks in advance. Regards, Alma Lagi

$25 USD dalam sehari
(0 Ulasan)
0.0
anandkr13

its easy task

$17 USD dalam sehari
(0 Ulasan)
0.0