Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
3.1.0-rc1
-
None
Description
ContentID SortClause uses alphabetical order, but should use numerical instead.
Steps to reproduce:
1. Execute a Query with ContentID SortClause enabled:
$query->sortClauses = [new SortClause\ContentId()];
Expected:
Content Items are sorted as follows:
1. ContentId = 1
2. ContentId = 2
3. Content Id = 3
...
Actual:
Content Items are sortted as follows:
1. ContentId = 1
2. ContentId = 10
3. ContentId = 100
4. ContentId = 1000
5. ContentId = 1001
...