Devographics / Monorepo

Monorepo containing the State of JS apps
surveyform-sigma.vercel.app
Other
124 stars 50 forks source link

No way to use specified option order in checkbox questions #293

Closed LeaVerou closed 11 months ago

LeaVerou commented 11 months ago

Currently, checkbox questions have randomize, which is a boolean, and if it's false, then options are ordered alphabetically. For many questions, there's a specific ordering that makes sense, and it should be preserved. Also, there may be different kinds of ordering or randomization we may want to employ in the future.

I propose deprecating randomize, and replacing it with an order enum, with values "random" and "alpha". Any other value would use the specified order.

(not sure if I should mark this "bug" or "enhancement", it seems to be working as intended, but having no way to opt out of having your options reordered seems like a bug to me)

Draft PR