From b7ffbcf033caa3144f0f35937940291dcfd38e71 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sat, 1 Oct 2022 15:18:06 +0800 Subject: [PATCH] feat: mds --- mds/index.html | 1 + mds/mds.html | 11 +++++++++++ mds/site.json | 3 +++ 3 files changed, 15 insertions(+) create mode 120000 mds/index.html create mode 100644 mds/site.json diff --git a/mds/index.html b/mds/index.html new file mode 120000 index 0000000..f737354 --- /dev/null +++ b/mds/index.html @@ -0,0 +1 @@ +mds.html \ No newline at end of file diff --git a/mds/mds.html b/mds/mds.html index c7ab68a..e27c220 100644 --- a/mds/mds.html +++ b/mds/mds.html @@ -81,6 +81,17 @@ var retObject = {}; async function refreshNotes() { retObject.entries = (await fetch_with_get_as_json('mds.json', {}, true)).entries; + retObject.entries.sort((a, b) => { + let aa = a.metadataStatement.description.toLowerCase(); + let bb = b.metadataStatement.description.toLowerCase(); + if (aa == bb) { + return 0; + } else if (aa < bb) { + return -1; + } else { + return 1; + } + }); } async function initVueApp() { await refreshNotes(); diff --git a/mds/site.json b/mds/site.json new file mode 100644 index 0000000..e595f0b --- /dev/null +++ b/mds/site.json @@ -0,0 +1,3 @@ +{ + "path":"mds" +} \ No newline at end of file