From 1591abe0fa2c51a4732b2cd495a556e3b501a6f0 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 27 Nov 2022 13:43:40 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- pwiki/store/base.js | 2 -- pwiki2.js | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pwiki/store/base.js b/pwiki/store/base.js index af1fcbf..07827ac 100755 --- a/pwiki/store/base.js +++ b/pwiki/store/base.js @@ -719,8 +719,6 @@ module.BaseStore = { // NOTE: this performs a natural sort, i.e. numbers in strings are // treated as numbers and not as strings of characters making // "page2" precede "page10". - // - // XXX should this be an index/cached?? __sort_method__: { // NOTE: path/location are special cases as they do not transform // the path -- they are hard-coded in .sort(..)... diff --git a/pwiki2.js b/pwiki2.js index 9bd0879..614adda 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -37,7 +37,8 @@ * - * * -* XXX sort: aliases (a-la imagegrid???) +* +* XXX sort: aliases (a-la imagegrid)??? * XXX sort: revise how we store order... * .metadata.order = [ .. ] * .metadata.order_ = [ .. ] @@ -50,6 +51,9 @@ * } * ...this would make updating order more complicated (i.e. require a fetch) * Q: will it be a good idea to use the cache/index api??? +* XXX sort: might be a good idea to pre-sort (index) all the pages and +* simply reference that for sorts... +* ...this needs thought and weighing... * XXX macros: else/default macro args essentially mean the same thing, should we * unify them to use the same name??? * XXX parser: error handling: revise page quoting...