I am trying to order documents by date ( in my case billDate
from the example below ) . But i don't want to convert my date into an integer . ( i don't need to ) So i wonder how can i order my string array by date . I would be glad if someone has some examples . Thank you
Response structure from the Back end :
[
{0:
billAmount: "18.37 EUR"
billDate: "07.03.2019"
billStatus: "offen"
checked: false
documentCountry: "BG"
documentId: 100421294
documentNumber: "2019-BRS-2000000478"
documentType: "Document 1"
endDate: "06.03.2019"
licensePlateNumber: null
serialNo: null
startDate: "05.03.2019"
tableData: {id: 0}
},
{1:
billAmount: "18.37 EUR"
billDate: "07.03.2019"
billStatus: "offen"
checked: false
documentCountry: "BG"
documentId: 100421292
documentNumber: "2019-BRS-2000000478"
documentType: "Document 2"
endDate: "06.03.2019"
licensePlateNumber: null
serialNo: null
startDate: "05.03.2019"
tableData: {id: 1}
}, ... ]