summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-25 13:57:12 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-25 13:57:12 -0700
commitc22adebebe9792fc0471a5f4c2cab9de6aff1d6e (patch)
tree25a872afa0650a30c036fbf09aa872babfb5714b /save-xml.c
parentab255e07ea6060d1a36a5195f6be9cccd3e0ffcc (diff)
parent72817ff47f8a990aa043603ebe2d3ead1ff811c9 (diff)
downloadsubsurface-c22adebebe9792fc0471a5f4c2cab9de6aff1d6e.tar.gz
Merge branch 'gitMerge'
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/save-xml.c b/save-xml.c
index 67ae96a37..778218fa4 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -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;