9495: Narrativeweb: inconsistent & incomplete display of place hierarchy labels

This commit is contained in:
SNoiraud 2016-06-21 08:03:44 +02:00
parent 58e169e9eb
commit fad158f409

View File

@ -3832,7 +3832,7 @@ class PlacePages(BasePage):
def sort_by_place_name(obj): def sort_by_place_name(obj):
place = self.r_db.get_place_from_handle(obj) place = self.r_db.get_place_from_handle(obj)
name = _pd.display(self.r_db, place) name = _pd.display(self.r_db, place)
return (name) return (name.lower())
handle_list = sorted(place_handles, handle_list = sorted(place_handles,
key=lambda x: sort_by_place_name(x)) key=lambda x: sort_by_place_name(x))