Possible to sort by a Multiple Choice field?

39 views
Skip to first unread message

James McFadden

unread,
Feb 3, 2026, 9:39:33 AM (10 days ago) Feb 3
to memento...@googlegroups.com
Is it not possible to sort entries by a Multiple Choice field?

From what I can see, it's been suggested some DBs can't sort by a comma delimited field. Is that the problem here?


- JM

Mmm

unread,
Feb 3, 2026, 12:56:22 PM (9 days ago) Feb 3
to mementodatabase
Встроенная сортировка записей в библиотеке не предусматривает сортировку по полям-массивам.
Вы можете включить встроенную сортировку для элементов поля с множественным выбором и добавить поле JS, которое будет определять первый выбранный элемент поля.
Останется выполнить стандартную сортировку по полю JS в нужном направлении (возрастание или убывание).

Если включение стандартной сортировки для элементов поля по какой-либо причине не приемлемо, можете отсортировать выбранные элементы непосредственно в поле JS.

вторник, 3 февраля 2026 г. в 17:39:33 UTC+3, jmmc...@yahoo.com:

David Gilmore

unread,
Feb 4, 2026, 10:44:16 AM (8 days ago) Feb 4
to mementodatabase
A kludgy way of doing this would be to create a second "text" field that holds the selected choice. You can make that second field "hidden" if you do not want to clutter the user screen. You auto fill in that second field in a "before create" or "before update" trigger. You can then sort on that second field.

I often use both of these two fields by having the text field display in the view window (with the choice field hidden), and have the choice field display in the edit screen (and have that second text field hidden).  Makes for a cleaner view and edit screens. Of course this only works if the user can select only one entry.

Reply all
Reply to author
Forward
0 new messages