To sort scores from highest to lowest or vice versa on a single CMS page in Webflow, you'll need to follow a few steps:
1. Setting up the CMS Collection:
- Go to the Collections tab in the Webflow Designer.
- Create a new Collection or edit an existing one that contains the scores you want to sort.
- Add a field to the collection to store the scores, such as a Number field named "Score".
2. Adding the data to the CMS items:
- In the CMS Editor, add or edit the items in the collection and fill in the "Score" field with the respective scores for each item.
3. Creating the dynamic list on the page:
- Drag and drop a Collection List element onto your CMS page.
- Connect the Collection List element to your desired collection and choose the collection you want to sort.
- Customize the layout and design of the dynamic list to match your site's style.
4. Sorting the dynamic list:
- With the Collection List selected, click on the Settings tab in the right Sidebar.
- Under Sort & Filter, choose the "Score" field as the sorting option.
- Select either "Descending" (highest to lowest) or "Ascending" (lowest to highest) as the sort order.
5. Styling the dynamic list:
- Style the Collection List items to display the score field as you desire, using the various styling options available.
Once you've completed these steps, the CMS page will display the scores in the desired sorted order. Whenever you update or add new scores in the CMS Editor, they will automatically reflect on the page based on the sorting configuration you've set.
Remember to publish your site to see the changes live on your CMS page.