Closed (outdated)
Project:
Drupal core
Version:
11.x-dev
Component:
entity system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 May 2020 at 13:29 UTC
Updated:
23 Sep 2026 at 18:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
maximpodorov commentedComment #3
kristen polHere's what it looks like without the patch.
Comment #4
kristen polAnd after the patch.
Comment #5
jyotimishra-developer commentedHi, I have tested this patch with Drupal 9.0 as well as 8.9.x version since i was facing same order issue in 8.9.x version of Drupal.
patch in #2 is working fine in both versions. sharing screenshots for reference in before and after patch manner.
Comment #6
kristen pol@jyotimishra123 Thanks but why did you test it when it had already been tested?
Comment #7
jyotimishra-developer commentedHi @Kristen Pol, the issue was mentioning for 9.0 version and i was facing this in 8.9 too, so i found this patch and applied and shared my result too. i did not specifically test this issue, was working something and used this patch so i thought i should share the result too..
I m new to this contribution so did not know that only one can share the testing response..Thanks!!
Comment #8
kristen pol@jyotimishra123 Gotcha. Welcome to Drupal contribution! Hope you're able to help out during the D9 porting weekend.
Comment #9
jyotimishra-developer commentedComment #10
xjmComment #11
xjmThanks @jyotimishra123! Usually we want to make sure we don't duplicate others' work because it adds noise, it's not fair in terms of issue credit, and it's better to work on things someone else hasn't already addressed. :)
That said, your manual testing results do help document why you consider the issue RTBC, which is good. We value it when someone who reviews a patch documents what they tested and why they think the issue is ready. So for that reason I'm keeping your credit on the issue as well as @Kristen Pol for the reviews.
A few more things we should address here:
I think we need an automated test for this.
I'm confused here. If we're using the Entity API to sort it, why are we also doing a
uasort()on the result?I'm also wondering if this should be addressed at the level of the list builder, rather than in the controllers. The fact that we have to repeat something on the node list builder makes me think the sorting should be done earlier.
Comment #12
jyotimishra-developer commentedHi @xjm,
Hoping you fine in this pandemic situation due to coronavirus!!
Agreed with your point and also got your point.
will take care these things in future, Thanks a alot.
Comment #18
mohit_aghera commentedI came across this issue while doing bugsmash triage.
I am not able to reproduce this issue.
It seems that this issue is already been fixed.
I can see that sort method is added on load() https://git.drupalcode.org/project/drupal/-/blob/11.x/core/lib/Drupal/Co... for
ConfigEntityListBuilder.phpNodeTypeListBuilder essentially calls `ConfigEntityListBuilder` only.
There is another issue #2265487: ConfigEntity based lists with items containing non-ascii characters are not sorted correctly which we worked on to provide sorting for non-ascii characters.
I think we should close this since above issue is more generic, also this isn't reproducible anymore.
Comment #20
kuldeepbarot commentedRe-rolled patch from #2 for D11.4.6