auspice icon indicating copy to clipboard operation
auspice copied to clipboard

Reordering datasets?

Open NPPO-NL opened this issue 1 year ago • 2 comments

If auspice has access to multiple datasets, how does auspice decide in what order to display this? I am unable to find an answer in the documentation. image Ideally the 20191231 dataset in the above image would be the top dataset.

NPPO-NL avatar Nov 22 '24 10:11 NPPO-NL

Hi @NPPO-NL - the code for this is here - basically it relies on the behaviour of fs.readdir which AFAIK is system dependent. Sorting alphabetically seems sensible, would that work for you?

jameshadfield avatar Dec 17 '24 20:12 jameshadfield

hi @jameshadfield - Apologies for the late reply, Changing the line const files = await readdir(localDataPath); to something like const files = (await readdir(localDataPath)).sort((a, b) => a.localeCompare(b)); might work. Is there a way to make this change to my local auspice installation I already installed as a user?

NPPO-NL avatar Jan 17 '25 13:01 NPPO-NL