There are a lot of subtleties related to “Re-ordering” in Gramps. These are the items that came to mind quickly. What other implications should be covered ?
This posting has been converted to a “Wiki”. It is open to editing.
Re-order entry in the Gramps Glossary
To change the sequence of items within a list of secondary objects. The interface for (and consequences of) re-ordering that sequence varies based on the list type.
The natural order of a list follows when the data was created. The first item in an ordered list is often considered the primary or preferred item of that type. The primary/preferred may be the only object considered in some charts and analyses. So when data entry of related objects was out of sequence, a re-ordering option becomes necessary.
Re-ordering affects display order in the Tree, charts, and most reports. Note that in some contexts, dates can override the manual order, particularly for Places and Names.
Merge entry in the Gramps Glossary
To combine the objects in two selected rows in a category view into a single object. This reduces duplicates while consolidating references and secondary objects. The merge process involves selecting two rows (a target row to be kept and a row to be deleted) then choosing Merge from the Toolbar or Edit menu. Choices are offered about which secondary objects take precedence when there are conflicts, but no data (except one of the descriptions in an Event merge) is lost by default. All secondary objects from both selected rows are conveyed to the surviving merged row. Only two objects may be merged at a time unless using addon tools designed for multiple object merges or batches of merges.
Topics to be touched upon in a wiki article
- Assumptions
- Record lists are in record creation order by default
- ordering is usually about Secondary objects
- The topmost (Primary or Preferred) object (family, event or name) is followed by default. Lesser priority objects may be omitted in reports or connection tracking.
- re-order children
- re-order families
- Main parents family in Gramps - controls which Family is followed in pedigrees
- re-order Media objects in the Gallery
- Move Left and Move Right buttons (added PR781 in May 2019 for 5.1.0) and drag’n’drop
- controls which Gallery thumbnail is shown in Object editors
- re-order Events (Person, Family)
- re-order Bookmarks (via Bookmarks → Organize Bookmarks…)
- re-order tags (via Edit → Tag → Organize Tags…)
- re-order personal Names
- Preferred Name default to 1st created. Change with drag’n’drop
- Preferred name versus Alternative names (with Date range interaction)
- grouping
- “Group as:” override
- “Sort as:” override
- re-order Place names (dated)
- Primary name versus Alternative Names (with Date range interaction)
- order of IDs
- re-order secondary objects
- order of References (not adjustable)
- order of Custom Types (not adjustable)
- GUI
- Column Editor for tabular List Views
- default sort is on 1st column (which can be a hidden column for overriding creation order)
- column ordering and hiding (and INIs)
- row sorting (include link to filtering)
- rows re-sorting after an edit (and navigating the folcus back to the previously neighboring rows)
- Selector (filters and sorting after search)
- Gramplet ordering
Systems for re-ordering:
- re-ordering using
- row sorting in tables (1st column sorting default, clicking the column header, reversing the sort order, disabled sorting have dimmed header labels)
- re-order buttons (Up/Down for most, Left/Right for object editor Galleries)
- drag’n’drop
- Relationships: Edit → Reorder menu item (or Reorder toolbar button)
- re-ordering tools
- Tools → Family Tree Processing → Reorder Gramps IDs
- Tools → Family Tree Processing → Sort Children in Birth order (addon)
- Tools → Family Tree Processing → Sort events
- Tools → Utilities → Verify the Data
- re-ordering Custom type lists (discourse: using Type Cleanup)
- re-ordering day, month, and year values in date strings to parser-ready using the Dates addon gramplet
Oddities:
- sort dates : new features often sort Date columns on the Date display format string rather than the Date value. (e.g., “1 Apr 1987” sorts before “1 Dec 1999”. When noticed, submit a bug report referencing issue 13317)
- rows in References tabs cannot be re-ordered
- rules added to Custom Filters are ordered by “last changed” and cannot be re-ordered
Wiki icons
- template:Icon
[[file:Stock_reorder.png|16px]]
filefails{{icon|stock_reorder}}
fails{{icon|treor}}
- Move Left and Move Right buttons (in a Gallery) briefly mentioned in the wrong section Add buttons for arrangement of GalleryTab media order by prculley · Pull Request #781 · gramps-project/gramps · GitHub , not properly introduced in wiki.
- Up and Down buttons (only used in the Note section of the Citations)
References
See related items in the MantisBT issue tracker:- 0013316 : Add documentation/info about re-ordering Families via the Edit Person dialog
Description - 0012058 : strangeness in Family Tree sort order (diacritics sorting)
- 0012737 : Allow sorting Tags/labels automatically by ASC/DESC
- 0012828 : When Sorting events for person with many events the event stays at the bottom of the visible list instead of moving upwards
- 0013027 : Sort events tool – handling of “after” dates
- 0010656 : Allow sorting on multiple columns in various menus
- 0011668 : Chaotic sorting of the person index in the dynamic web report
- 0012070 : reasonable consistent sorting of events in the person edit
- 0011854 : Add Option to Auto Sort and Auto Sort Event By Date When New Event Entered
- 0009089 : When adding a child to a family use smarter sorting
- 0004360 : Add a generic method for sorting children by birthdate on family (sort.py)
- 0008509 : files in the “media” get files window, are not correctly sorted
- 0001949 3 2 : Book report, custom page, editing a style - list sorting - proposition
- 0010359 : Can’t change default person photo (add Move Left and Move Right button to Edit object Galleries)