Closed (fixed)
Project:
MyREST
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2026 at 08:12 UTC
Updated:
14 Sep 2026 at 08:28 UTC
Jump to comment: Most recent
MyrestEntityLoaderInterface::getTermsByVid($vid, $sort) takes the name of a field to sort by and applies it to the query. Everything the loader returns then goes through a step that sorts it by weight, so for any entity type that has a weight - which taxonomy terms do - the argument has no effect at all.
A caller asking for terms sorted by name gets them sorted by weight and no indication that it did not get what it asked for. The signature is the documentation, and here the documentation is wrong.
Everything.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
sergeydruua commentedComment #6
sergeydruua commented