tdf#129836 - Alphabetize styles in the footnotes/endnotes dialog

Change-Id: Ia578d902648ef9d2c11e5ba40b16f87197d0fa2b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114319
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
diff --git a/sw/source/ui/misc/docfnote.cxx b/sw/source/ui/misc/docfnote.cxx
index f9086dc..c6b1eb0 100644
--- a/sw/source/ui/misc/docfnote.cxx
+++ b/sw/source/ui/misc/docfnote.cxx
@@ -101,7 +101,7 @@ SwEndNoteOptionPage::SwEndNoteOptionPage(weld::Container* pPage, weld::DialogCon
        m_xPosPageBox->connect_clicked(LINK(this, SwEndNoteOptionPage, PosPageHdl));
        m_xPosChapterBox->connect_clicked(LINK(this, SwEndNoteOptionPage, PosChapterHdl));
    }

    m_xParaTemplBox->make_sorted();
}

SwEndNoteOptionPage::~SwEndNoteOptionPage()
@@ -171,7 +171,6 @@ void SwEndNoteOptionPage::Reset( const SfxItemSet* )
        m_xParaTemplBox->append_text(pStyle->GetName());
        pStyle = pStyleSheetPool->Next();
    }
    m_xParaTemplBox->make_sorted();

    OUString sStr;
    SwStyleNameMapper::FillUIName( static_cast< sal_uInt16 >(bEndNote ? RES_POOLCOLL_ENDNOTE