How to sort items on GridContextMenu<>


I need to make an alphabetical order of the items contained in my GridContextMenu<>

But the comparator doesn’t work for me

final GridContextMenu<Alimento> contextMenu = new GridContextMenu<>(gridDieta);
final GridMenuItem<Alimento> insertarCarbo = contextMenu.addItem("AInsertar carbo");
final GridMenuItem<Alimento> insertarCarboSimple = contextMenu.addItem("BInsertar carbo simple");
final GridMenuItem<Alimento> insertarVerdura = contextMenu.addItem("ZInsertar verdura");
final GridMenuItem<Alimento> insertarLegumbre = contextMenu.addItem("DInsertar legumbre");