Skip to content

Commit

Permalink
date sorting fix 521
Browse files Browse the repository at this point in the history
  • Loading branch information
govTechSatish committed Aug 5, 2022
1 parent 32f4a7c commit 20cb385
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/routes/applications.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function createModel (request, page) {
{ text: n.data?.organisation?.name },
{
text: n.data?.organisation?.sbi,
format: 'number',
format: 'numeric',
attributes: {
'data-sort-value': n.data?.organisation?.sbi
}
Expand All @@ -33,7 +33,7 @@ async function createModel (request, page) {
text: new Date(n.createdAt).toLocaleDateString('en-GB'),
format: 'date',
attributes: {
'data-sort-value': new Date(n.createdAt).toLocaleDateString('en-GB')
'data-sort-value': new Date(n.createdAt).toLocaleDateString('en-US')
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion app/views/applications.njk
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@
text: "SBI",
attributes: {
"aria-sort": "ascending"
}
},
format: "numeric"
},
{
text: "Apply date",
Expand Down

0 comments on commit 20cb385

Please sign in to comment.