You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -783,7 +783,7 @@ No compatibility because MeiliSearch does not support Rules.
783
783
784
784
[Sort by references](https://www.algolia.com/doc/api-reference/widgets/sort-by/js/)
785
785
786
-
The `sortBy` widget is used to create multiple sort formulas. Allowing a user to change the way hits are sorted.
786
+
The `SortBy` widget is used to create multiple sort formulas. Allowing a user to change the way hits are sorted.
787
787
788
788
- ✅ container: The CSS Selector or HTMLElement to insert the widget into. _required_
789
789
- ✅ items: The list of different sorting possibilities. _required_
@@ -795,7 +795,7 @@ The usage of the `SortBy` widget differs from the one found in Algolia's documen
795
795
- Sort using different indexes.
796
796
- Different `sort` rules on the same index.
797
797
798
-
The items list is composed of objects containing every sort possibilities you want to provide to your user. Each objects must contain two fields:
798
+
The items list is composed of objects containing every sort possibility you want to provide to your user. Each object must contain two fields:
799
799
-`label`: What is showcased on the user interface ex: `Sort by Ascending Price`
800
800
-`value`: The sort formula.
801
801
@@ -805,7 +805,7 @@ A sort formula is expressed like this: `index:attribute:order`.
805
805
806
806
`index` is mandatory, and when adding `attribute:order`, they must always be added together.
807
807
808
-
When sorting on an attribute, the attribute has to be added in the [`SortableAttributes`](#link-to-doc) setting on your index.
808
+
When sorting on an attribute, the attribute has to be added to the [`sortableAttributes`](https://docs.meilisearch.com/reference/api/sortable_attributes.html) setting on your index.
809
809
810
810
Example:
811
811
```js
@@ -814,7 +814,7 @@ Example:
814
814
]
815
815
```
816
816
817
-
In this scenario, in the `clothes` index, we want the price to be sorted in an ascending way. For this formula to be valid, `price` must be added in the `sortableAttributes` settings of the `clothes` index.
817
+
In this scenario, in the `clothes` index, we want the price to be sorted in an ascending way. For this formula to be valid, `price` must be added to the `sortableAttributes` settings of the `clothes` index.
0 commit comments