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

[ES] SortClause\Location\Id SortClause uses alphabetical order

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 3.1.0-rc1
    • None

    Description

      SortClause\Location\Id SortClause uses alphabetical order, but should use numerical instead.

      Steps to reproduce:
      1. Execute a Query with ContentID SortClause enabled:

              $query->sortClauses = [new SortClause\Location\Id()];
      

      Expected:
      Content Items are sorted as follows:
      1. LocationId = 1
      2. LocationId = 2
      3. LocationId = 3
      ...

      Actual:
      Content Items are sorted as follows:
      1. LocationId = 100
      2. LocationId = 1000
      3. LocationId = 1001
      4. LocationId = 1002
      5. LocationId = 1003
      ...

      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: