I created a simple collection with a combination of text and option fields. The option fields allow me to define the client options ahead of time to ensure consistency and also to save them time when creating new collection records. When I try to define how the collection should be sorted I find no way to sort on option fields. All I see are options to sort on text fields.
I can understand why reference fields are excluded but why not support option fields? Am I missing something?
Thank you for responding to my inquiry. I am not able to link my clientâs site but I think the question is not project specific. All I need to know is if simple âOptionâ collection field types may be used to specify a collection list sort.
Ok ok, now i see what u are referring to! Unfortunately, the âOptionâ field does not have a filtering option. To be honest Iâve never seen someone use that for filtering. Not sure how you would be able to!
Brandon is right you canât use the option field for sorting. You could use the Numbers field instead, depending on your sorting needs, and sort by that.
Option is more designed as a quick category feature, one that doesnât require to create another collection for it. Itâs easy to filter on it, but yes, it could be possible to order a list with this field (A-Z and Z-A I guess) but this feature isnât available yet.
I kinda do it anyway on several projects of mine. Rather than sorting per se, I filter the options in a series of lists that I put one after another, or one in each tab of a tab component. Itâs a design solution that fits my needs, but depending on the context, itâs possibly not a solution for you. Especially if you have a large number of options (you could hit the limit of 20 collections lists per page).
I am surprised this is not being requested by more people. Imagine a collection that consists of just a personâs full name and their home state name. When someone enters a record into this super simple collection they need to type the personâs name (text field) and select the state from a drop down that has all the state names (option field). When presenting the collectionâs data it may be useful to sort by state i.e. a table sorted by the state column. If the Option field is not available for sorting that means we have to create a third field and assign numbers or letters to it to simulate a sort by states. This seems redundant and time consuming⊠but it works.
@meinar I was looking also for the same solution, I created an option field with numbers from 1 to 20 so itâs easier for the clients to order and then I saw that it doesnât appear aon sort ordner option, thatâs really frustrating how Webflow misses these simple improvements :s they also donât have the option of reordering items with drag and drop like pages :S.
I donât understand why webflow launches something big like eCommerce when they miss simple improvements like these :S.
Any updates on this? Just created a drop-down field so we can easily sort a staff directory based on seniority, and it doesnât look like itâs possible. I know I could filter and just add lists one after the other, but it doesnât work for my layout and this seems like it should be a fairly basic fix for Webflow?
REPLYING TO THIS because I am too looking for this function. My dropdown field corresponds to companies and I want to sort my collection list based on alphabetical companies. How is this not a feature yet?
+1 on this. I have a collection of products, some available and some sold. Iâd like the available ones to show up first, and the the âsold outâ ones to appear second.
UPDATE: A workaround is to use a Switch. You can sort by Switch first and then by whatever your regular sort text is (alphabetical, etc).
So for @Evan1, you could have a Switch called âOpenâ and âClosedâ for your courses and sort by Open first. Works well for anything that has 2 options. Open/Closed, Available/Sold Out, etc.
I was also looking for this function because I have three different categories for my different program offerings and I want to sort those programs by option in alphabetical order.
Webflow, please implement this feature!
@meinar , @gencdoda , @Mandy_Hopp , @farewellmedia , @jheidel
Although Webflow doesnât yet offer in-designer Collection List sorting for Option fields or Ref fields, itâs easy to setup sorting with a small script.
Iâve done a tutorial here;
** 20-Jan-2023 - Video redone due to the massive A/V sync issue, and cloneable added
Thanks a ton for letting me know Steven, Iâve just redone that one and added a cloneable. Loom is fantastic but Iâll need to watch A/V sync carefully, I tend to have a million browser tabs open at any given momentâŠ