Within Gramps I have sorted my events the way I need them to be sorted. However when exporting through ‘Website with a story’ the sorting gets mangled. Why would the sorting be changed from what I have entered?
example:
Event: Education, Date From 1959 to 1960, Location: School at a place
Event below: Residency, date 1960, Location: at a different place
I need this info to remain in the order I have added it. However the html export swaps them around (and does so for several other events as well). Why does it do that and what can I do to prevent that from happening. Thanks in advance.
the events might be in creation order, not override sort order
it might be the an artifact related to Events potentially being collated from multiple sources and then being reduced to a unique list. So the order override becomes unusable
I think it would helpful to have a sample that others can reproduce. Usually, developers prefer that samples be based on the example.gramps tree.
I just did a test by switching the order of my father’s military service events, When I created the Narrated Web, the events were in date order. But whatever code is putting the events in date order, it is leaving an event like Burial with no date as the last event in the list, The code is doing the sort smartly unlike the Sort Events tool that placed any non-dated events as the first events.
I also did a specific test using from 1959 to 1960 as the first event and 1960 as the second event. The single event of 1960 was sorted in the report before the from 1959 to 1960 event. A second test of from 1953 to 1960 and the second event dated 1960, the 1960 event was sorted first in the report and the from 1953 to 1960 event followed. The last test was from 1953 to 1961 and 1960 with the same results.
I suspect the event sort is using <date2> in a from <date1> to <date2> and a between <date1> and <date2> scenario.
More testing is needed and a closer look at the code.
Thanks Dave for trying that and giving that example. It is exactly what has happened with my Narrated export. So I won’t be needing to make my own I guess. Thank you.