What determines figure order in cross-reference dialog?

The captioned figures I created from screenshots appear in order in the cross-reference dialog. However, other figures I have created do not appear in the same order.

For example, I created a frame that contains a table and an image. In creating the caption, I believe the default was to save the frame as a drawing. I manually changed it to save it as a figure. It is now Figure 34.

In the cross-reference dialog, Figure 1 through Figure 47 appear in order with the exception of Figure 34, which appears at the end of the list.

Clearly there is something about the type of figure that causes it to be saved at the end of the list. What is it? And what can I do to make Figure 34 appear in the correct order in the list?

I cross-posted this question in the Open Office forum and will post any answers here.
https://forum.openoffice.org/en/forum/viewtopic.php?f=29&t=99019

The answer is here: [Issue] Figure listed out of order in cross-reference dialog (View topic) • Apache OpenOffice Community Forum
This is caused by a bug that places a space before the text in the caption. The work-around is to place the cursor at the beginning of caption text and press Backspace.