From d5f6faf60e713cbe7fc5f038130069a8579e4e8a Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 23 Oct 2018 09:52:31 +0300 Subject: [PATCH] notes and tweaking... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/sort.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/features/sort.js b/ui (gen4)/features/sort.js index 3981ab3d..840626f2 100755 --- a/ui (gen4)/features/sort.js +++ b/ui (gen4)/features/sort.js @@ -77,6 +77,7 @@ module.SortActions = actions.Actions({ // checking for upper case: // var st = s.trim() // st[0].toUpperCase() == st[0] + // XXX keep-position should be on by default... (???) 'Date': 'image-date name-sequence keep-position reverse', 'File date': @@ -118,13 +119,17 @@ module.SortActions = actions.Actions({ __sort_methods__: { // aliases... 'image-date': - //'image-create-date image-modify-date', 'image-create-date', + 'image-create-date': 'metadata.createDate birthtime ctime name-sequence keep-position', // XXX //'image-modify-date': // 'metadata.createDate birthtime ctime name-sequence keep-position', + + 'file-create-date': + 'birthtime ctime keep-position', + // XXX make sequence sort methods compatible with repeating numbers, // i.e. for file names like DSC_1234 sorting more than 10K files