Open Majpuc opened 2 years ago
Noo, it’s only possible in LZ. Just kidding :) Will sorting the file names alphabetically do the thing? Or you need something more advanced?
Good! I am not sure an alphabetic sorting will help. It would be good if it is able to recognize the file naming convention: s_xxx
OK. Since LZ is the gold standard :) for sorting @Tevemadar do you sort them alphabetically?
I sort by the section numbers. While probably it's done in a complicated way, if I wrote the code today, I would simply take the _sxxx...
part, and sort that alphabetically. This way the lettered sub-images would be sorted too.
Something like
let sections=[{name:"WhateverElse_s123b"},
{name:"Whatever_s124_timm"},
{name:"WhateverElse_s123a_CO2"},
{name:"WhateverElse_s123c_bda"}];
sections.sort((a,b)=>a.name.match(/(_s\d+.*)/)[0].localeCompare(b.name.match(/(_s\d+.*)/)[0]));
console.log(JSON.stringify(sections));
[{"name":"WhateverElse_s123a_CO2"},{"name":"WhateverElse_s123b"},{"name":"WhateverElse_s123c_bda"},{"name":"Whatever_s124_timm"}]
Hi @darwinjob What is the status here?
Hi,
We are preparing Mio (and later LZ links) where several series are mixed. We thought Mio would display the order according to the section numbers but apparently not: https://miosdv.apps-dev.hbp.eu/index.html?bucket=https://data-proxy.ebrains.eu/api/v1/public/buckets/img-439ccbe7-c645-11ec-b100-00090faa0001&collectionMode=true&limit=200
Could you change some settings so it can follow the section numbers? or is it possible only in LZ?