Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-3203

[ES] ContentId SortClause uses alphabetical order

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium 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
      ...

      Attachments

        Activity

          People

            adam.wojs@ibexa.co Adam Wójs
            marek.nocon@ibexa.co Marek Nocoń
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: