• + 0 comments

    Want to use something simalar in JS to improve search of this website , basically I want functionaly of alphabetically arrange blog posts , which is not available by default in the theme I want to use, but when run in JS it has a lot of errors. I am not a professional developer my self but trying to solve this porblem on my own and practicing. sorting by numbers is possible by using this

     function bigSorting(unsorted) {
             return unsorted.sort((a, b) => (BigInt(a) > BigInt(b))? 0 : -1 );
        }
        bigSorting(unsorted).forEach(i=>console.log(i));