person profile page, adding names

This commit is contained in:
2026-04-09 16:47:55 +02:00
parent 9fa19d6caf
commit 14abdc9e4a
4 changed files with 119 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ impl Person {
pub fn get_all_names(&self, conn: &Connection) -> Result<Vec<Name>, PersonError> {
Ok(conn
.prepare("SELECT id, is_primary, person_id, created_by, name FROM names WHERE person_id = ?1")?
.prepare("SELECT id, is_primary, person_id, created_by, name FROM names WHERE person_id = ?1 ORDER BY id")?
.query_map((&self.id,), |r| {
Ok(Name {
id: r.get(0)?,