This sounds like some sort of misunderstanding, but you'd have to explain what the problem is you're experiencing for us to say more.
There are no known bugs related to ordering. Attachments are ordered by the attachment title by default. There's an 'sortAttachmentsChronologically' preference that you can toggle on in the Config Editor in the Advanced pane of the preferences.
Well, your first screenshot showed 0, 3, 8, so that was sorted correctly. (It also happened to be sorting alphabetically after that, though that was irrelevant. "The" is ignored for sorting in the items list.)
0, 3, 8, 7 is wrong, though. Does that persist after restarting Zotero?
To be clear, this is about child attachments to an item? If so, can you show that in the screenshot?
If you click the attachment title in the right-hand pane and rename something to use a different number (without renaming the associated file), does the order change?
I'm having this same issue. The only difference I have is that when I run the javascript dstillman suggested on Feb 27 I get imperfect alphabetisation. Notes do indeed alphabetise. I toggled the sort attachments chronologically on, then restarted, set it to off, restarted, but it didn't help. Using 5.0.96.2 on a Mac
I have the same issue, when I attached aaa.pdf, 111.pdf, bbb.pdf, 000.pdf, it showed the order I added, extensions.zotero.sortAttachmentsChronologically was set as false.
Is it just me or a common bug?
There are no known bugs related to ordering. Attachments are ordered by the attachment title by default. There's an 'sortAttachmentsChronologically' preference that you can toggle on in the Config Editor in the Advanced pane of the preferences.
Yes, since I started using Zotero in 2011 that has been the default behaviour, but now for some reason it's changed, as you can see here: https://i.ibb.co/vBH3JNW/Attachment-Order-2.png
The option "extensions.zotero.sortAttachmentsChronologically" is set to "false".
Before I could sort attachments by adding a number at the beginning (0, 1, 2, and so on). Is that not considered part of the "title" now?
I've just updated the screenshot to show that the order is not alphabetical in either way: "0, 3, 8, 7" or "F, (The) D, S, C".
0, 3, 8, 7 is wrong, though. Does that persist after restarting Zotero?
To be clear, this is about child attachments to an item? If so, can you show that in the screenshot?
Yes, child attachments to an item.
var rows = ZoteroPane.getSelectedItems()[0].getAttachments().map(x => Zotero.Items.get(x)); var collation = Zotero.getLocaleCollation(); rows.sort((a, b) => collation.compareString(1, a.getField('title'), b.getField('title'))); Zotero.Prefs.get('sortAttachmentsChronologically') + "\n" + JSON.stringify(rows.map(x => x.getField('title')))
false
["0 - Front Matter.pdf","3 - The Decay of Lying.pdf","7 - The Critic as Artist.pdf","8 - The Soul of Man Under Socialism.pdf"]
Notes however work normally (i.e. are displayed alphabetically, regardless of when they were added or edited).
https://sm.ms/image/cy3a6eWG1CloXrp
Plugins: Zotfile, DOI, BibTex, Mdnotes, Zutilo.