Cancelled

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.

Skills: Algorithm, Android, Database Programming, Java, Mobile App Development

See more: 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

About the Employer:
( 3 reviews ) BAKU, Azerbaijan

Project ID: #17957238

10 freelancers are bidding on average $21 for this job

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 in 1 day
(31 Reviews)
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 More

$25 USD in 1 day
(7 Reviews)
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 in 1 day
(8 Reviews)
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 More

$15 USD in 1 day
(1 Review)
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 More

$28 USD in 7 days
(0 Reviews)
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. More

$10 USD in 1 day
(0 Reviews)
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 More

$10 USD in 1 day
(1 Review)
0.0
Thent040799

Pls. Give me your project

$25 USD in 1 day
(0 Reviews)
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 More

$25 USD in 1 day
(0 Reviews)
0.0
anandkr13

its easy task

$17 USD in 1 day
(0 Reviews)
0.0