Skip to content

Commit

Permalink
Merge pull request #6394 from msupply-foundation/6366-fix-patient-sor…
Browse files Browse the repository at this point in the history
…ting

#6366 Fix patient sorting
  • Loading branch information
CarlosNZ authored Feb 3, 2025
2 parents 377e1b9 + 8404309 commit ac974dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/repository/src/db_diesel/patient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ impl<'a> PatientRepository<'a> {
apply_sort_no_case!(query, sort, name::first_name)
}
PatientSortField::LastName => apply_sort_no_case!(query, sort, name::last_name),
PatientSortField::Gender => apply_sort_no_case!(query, sort, name::gender),
PatientSortField::Gender => apply_sort!(query, sort, name::gender),
PatientSortField::DateOfBirth => {
apply_sort_no_case!(query, sort, name::date_of_birth)
apply_sort!(query, sort, name::date_of_birth)
}
PatientSortField::Phone => apply_sort_no_case!(query, sort, name::phone),
PatientSortField::Address1 => apply_sort_no_case!(query, sort, name::address1),
Expand Down

0 comments on commit ac974dd

Please sign in to comment.