DataTable Date Sort column Issue

UI Components for JSF
Post Reply
rampage007
Posts: 1
Joined: 26 Jun 2017, 18:10

26 Jun 2017, 18:25

I have added a date column in my primeNg dataTable. The date being passed in is in this format: "MM-DD-YYYY". I have also added the sort property to the column and it does not work as expected. It is sorting by month only not by the entire date. So i get something like this when sorting in ascending order:
02-01-2017
04-01-2016
07-01-2014
11-01-2016
12-01-2016
Is there a property or workaround to get this to sort properly?

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

29 Jun 2017, 13:07

PrimeNG != PrimeFaces. Please use the correct forum (and if you post to stackoverflow, don't tag the question with PrimeFaces ;-))

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 47 guests