Descending date sorting ̶b̶u̶g̶

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abidoss
    Senior Member
    • Mar 2023
    • 243

    #1

    Descending date sorting ̶b̶u̶g̶

    I recently noticed an issue with date sorting: when I sort in descending order, the dates are not arranged correctly, as shown in the attached screenshot


    Click image for larger version  Name:	image.png Views:	18 Size:	30.6 KB ID:	118593
    Click image for larger version  Name:	image.png Views:	15 Size:	41.4 KB ID:	118594
    Last edited by yuri; Today, 07:21 AM.
  • yuri
    Member
    • Mar 2014
    • 9052

    #2
    I've never encountered this. Can anyone who can reproduce look into?
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • victor
      Active Community Member
      • Aug 2022
      • 923

      #3
      Originally posted by abidoss
      I recently noticed an issue with date sorting: when I sort in descending order, the dates are not arranged correctly, as shown in the attached screenshot
      It is not reproduced in either custom or system entities (with either custom or system fields).

      Comment

      • abidoss
        Senior Member
        • Mar 2023
        • 243

        #4

        The problem only appears when I enter a word in the search bar — for instance, "administrateur"

        Click image for larger version

Name:	{3DC52792-7BC4-44E9-9FD3-82D1101EC84A}.png
Views:	0
Size:	76.5 KB
ID:	118620

        Comment

        • abidoss
          Senior Member
          • Mar 2023
          • 243

          #5
          It's strange — the issue doesn't occur with this status or with other statuses.
          Click image for larger version

Name:	{8175F80A-7651-4579-9373-CB176FCCEB99}.png
Views:	0
Size:	84.6 KB
ID:	118622

          the issue only occurs when this particular status is selected ,I noticed that the issue occurs when I select "All" and the status is set to "Closed" in the search filter

          Click image for larger version

Name:	{AAA981ED-F3C1-4A01-A1E2-3313DEC6BAEF}.png
Views:	0
Size:	53.5 KB
ID:	118623

          Comment

          • yuri
            Member
            • Mar 2014
            • 9052

            #6
            It's because the full text search relevance sorting is applied before the "date". Records that are more relevant will be displayed first. The regular field order will be applied on top.

            It's configurable.

            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            Working...