Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanned Resource form Collection list not sorted by title #6419

Open
escowles opened this issue May 31, 2024 · 0 comments
Open

Scanned Resource form Collection list not sorted by title #6419

escowles opened this issue May 31, 2024 · 0 comments
Labels

Comments

@escowles
Copy link
Member

escowles commented May 31, 2024

The code appears to sort the collection list by title:

  <%= f.input :member_of_collection_ids,
              collection: @collections.sort_by { |title| title.to_s },

But it is sorting by ID instead:

<option value="008ddfbc-053b-4ecb-b755-1847902b6994">aisls_yd</option>
<option value="012ce943-1960-4153-b111-88c5a6c8e60b">Pre-1979 Persian Periodicals</option>
<option value="02590a33-e8ad-42eb-8239-f8decf871de1">Need Host Record</option>
<option value="029ecaaf-0e84-4cb7-8dd2-9adc16b68640">José Bianco Papers C0681</option>
<option value="03556507-2e2b-4393-a50f-5207877c38e8">William McElwee Miller Collection of Bābī Writings and Other Iranian Texts C0723.1-47</option>
@escowles escowles added the bug label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant