mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Save XML: sort the dive sites by uuid
This makes it much easier to compare XML files written by Subsurface. The order of the dive_site_table depended on the order in which they were encountered. This makes it easier to eye-ball changes in XML files. And allows the GitStorage test to pass. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e03b553e80
commit
420afeef57
3 changed files with 15 additions and 1 deletions
|
@ -507,7 +507,8 @@ void save_dives_buffer(struct membuffer *b, const bool select_only)
|
|||
put_format(b, " <autogroup state='1' />\n");
|
||||
put_format(b, "</settings>\n");
|
||||
|
||||
/* save the dive sites */
|
||||
/* save the dive sites - to make the output consistent let's sort the table, first */
|
||||
dive_site_table_sort();
|
||||
put_format(b, "<divesites>\n");
|
||||
for (i = 0; i < dive_site_table.nr; i++) {
|
||||
int j;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue