Sorting in List or Library control - managed metadata - taxonomy

Hello guys,
I am not able to "sort" in list or library control on List or Library control.
Does it work somehow? Is there any way how I can achieve it?
Maybe some customizer?

Thank you for pointing me to a right direction :slight_smile:

Regards
Stepan

Hi @StepanS,

Could you try the approach from this post?

Hello @IliaLazarevskii ,
It did not help unfortunately :frowning:
I had to use this piece of code:

window.sortByPlant = () => {
  const selectedPlant = fd.field("pfSelectedPlant").value;
  console.log(selectedPlant);
  if (selectedPlant === "" || !selectedPlant) {
    console.log("You have not chosen a plant to be sorted by...");
    fd.control("listMCZ").filter = "";
    return;
  }

  fd.control(
    "listMCZ"
  ).filter = `<Eq><FieldRef Name="PlantsText"/><Value Type="Text">${selectedPlant}</Value></Eq>`;
  fd.control("listMCZ").refresh();
};

Like custom fiel with button and function attached to the button onClick.
But If someone find out greater solution how to sort by clicking on a column that shows Taxnomy(Multi), I would be happy. :slight_smile:

Regards
Stepan