From 3d19491f406e28278912d0f0a593c2a270bc6acc Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sun, 8 Aug 2010 18:33:21 +0000 Subject: [PATCH] Sort by "surname" instead of "group as" in flat person view svn: r15686 --- src/gui/views/treemodels/peoplemodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/views/treemodels/peoplemodel.py b/src/gui/views/treemodels/peoplemodel.py index 58bea4ce9..3f8fee959 100644 --- a/src/gui/views/treemodels/peoplemodel.py +++ b/src/gui/views/treemodels/peoplemodel.py @@ -184,7 +184,7 @@ class PeopleBaseModel(object): def sort_name(self, data): n = Name() n.unserialize(data[COLUMN_NAME]) - return (n.get_group_name(), n.get_first_name()) + return (n.get_surname(), n.get_first_name()) def column_name(self, data): handle = data[0]