sort applicants by last name in the CSV file
This commit is contained in:
parent
c6a52a2981
commit
ad8999877c
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ function createApplicantsCsv(applicantDetailsList) {
|
|||
CSV_FIELDS.join(",")
|
||||
]
|
||||
|
||||
applicantDetailsList.forEach((applicantDetails) => {
|
||||
applicantDetailsList.sort((app1, app2) => app1.last_name.localeCompare(app2.last_name)).forEach((applicantDetails) => {
|
||||
const values = CSV_FIELDS.map((fieldName) => escapeCsvValue(getApplicantCsvValue(applicantDetails, fieldName)))
|
||||
rows.push(values.join(","))
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue