Capitalized Names Validation
We should make sure that names are put in with capitalization or else it will mess up the sorting of the patient names.
That's an excellent catch! Could we sort in a case-insentive way? Some people have lower case letters that start their names (e.g. deMaar, d'Souza).
sorted(lst, key=lambda s: s.lower())
On Sep 7, 2015, at 12:48, Justin R. Porter [email protected] wrote:
That's an excellent catch! Could we sort in a case-insentive way? Some people have lower case letters that start their names (e.g. deMaar, d'Souza).
— Reply to this email directly or view it on GitHub.
that's a good idea. I think that the sorting is actually implemented in the template file, though so I think you probably will wind up needing to do something like
{{ ... | lower | sort }}
in the actual rendering of the page.
On second thought, this is kind of a dumb solution, since ultimately we want to be able to filter this view, so it might be better to produce the sorting in the view...