Sort Bookmarks by date on OperaGX?
Is this possible? I currently append the following script to the end of the exported bookmark html file, but this should be a feature...
<h1>Sorted</h1>
<div class="right3"></div>
<p>
<script>
let addDate = document.querySelectorAll('[ADD_DATE]')
Array.from(addDate).sort((a,b)=>{
a = new Date(parseInt(a.attributes.add_date.nodeValue)).valueOf()
b = new Date(parseInt(b.attributes.add_date.nodeValue)).valueOf()
return a-b;
}).forEach(el => {
document.querySelector('.right3').appendChild(el)
})
</script>
<style>
a{
display: block;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
}
</style>