Alphabetizing Agenda View?

Is it possible to alphabetize the items in the Agenda view? As opposed to listing them in order of time?
docs.dhtmlx.com/scheduler/agenda_view.html

I can’t get this Jquery script working within the Scheduler:

[code]
var $divs = $(“div.dhx_agenda_line”);

$(’#alphBnt’).on(‘click’, function () {
var alphabeticallyOrderedDivs = $divs.sort(function (a, b) {
return $(a).find(“span”).text() > $(b).find(“span”).text();
});
$(".dhx_agenda_area").html(alphabeticallyOrderedDivs);
});

$(’#numBnt’).on(‘click’, function () {
var numericallyOrderedDivs = $divs.sort(function (a, b) {
return $(a).find(“h2”).text() > $(b).find(“h2”).text();
});
$("#container").html(numericallyOrderedDivs);
});[/code]

<button id="alphBnt">Alphabetical</button>

Hi,
currently you can’t specify sorting for the agenda view, events are always sorted by time. You can check the grid view, it supports sorting
docs.dhtmlx.com/scheduler/grid_view.html

Hi Aliaksandr,
Am I able to use a function like:

return scheduler.getLabel("employee", ev.employee);

for the id?