e);
        titleDiv.setAttribute('data-index',index);
        titleDiv.addEventListener('click', function () {
            clickItem(titleDiv);
        });
        tocDiv.appendChild(titleDiv);
        currdbidxs.push(index);
        ascindex += 1;
    });

    let sorter = document.getElementById('sortorder').value;
    if(sorter=="1" || sorter=="2")
    {
        let asc = (sorter=="2");
        const childDivs = Array.from(tocDiv.children);
        if(asc)
        {
            childDiv