Currently, this can be achieved with the following solution:
var editor = $("#editor").data("kendoEditor");
editor.toolbar.element.find(".k-i-image").parent().click(function () {
setTimeout(function () {
var imageBrowser = $(".k-imagebrowser").data("kendoImageBrowser");
console.log(imageBrowser);
var listView = imageBrowser.listView;
console.log(listView);
listView.dataSource.sort({
field: "type", dir: "asc", compare: function (a, b) {
if (a.type!=b.type) {
return (a.type > b.type) ? 1 : -1;
}
else {
return a.name === b.name ? 0 : (a.name > b.name) ? 1 : -1;
}
}
});
});
But it would be more convenient if there is a built-in way to configure that and prevent internal sorting when not desired.