Skip to content

Commit c8b41ac

Browse files
bidoubiwacurquiza
andauthored
Apply suggestions from code review
Co-authored-by: Clémentine Urquizar <[email protected]>
1 parent 20f36a3 commit c8b41ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ No compatibility because MeiliSearch does not support Rules.
783783

784784
[Sort by references](https://www.algolia.com/doc/api-reference/widgets/sort-by/js/)
785785

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.
787787

788788
- ✅ container: The CSS Selector or HTMLElement to insert the widget into. _required_
789789
- ✅ 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
795795
- Sort using different indexes.
796796
- Different `sort` rules on the same index.
797797

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:
799799
- `label`: What is showcased on the user interface ex: `Sort by Ascending Price`
800800
- `value`: The sort formula.
801801

@@ -805,7 +805,7 @@ A sort formula is expressed like this: `index:attribute:order`.
805805

806806
`index` is mandatory, and when adding `attribute:order`, they must always be added together.
807807

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.
809809

810810
Example:
811811
```js
@@ -814,7 +814,7 @@ Example:
814814
]
815815
```
816816

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.
818818

819819
#### Relevancy
820820

0 commit comments

Comments
 (0)