Search…

X3 Photo Gallery Support Forums

Search…
 
HiThere
Topic Author
Posts: 2
Joined: 09 Nov 2016, 06:28

How to sort folders?

25 Jan 2017, 05:41

Hi!

Love X3! Have a question about sorting folders, may be sort of a stupid one but I could not find anything on the forum about this. Suppose I have a folder named Travelling (or whatever) and that folder has, say, 30 subfolders (with only images) named 1.Albania, 2.Germany, 3.Finland.....30.USA and gets sorted by number. Now, if I want to add a new folder to the top of that stack (say 1.Peru), do I have to rename all of them so that 1.Albania->2.Albania, 2.Germany->3.Germany.....31.USA?

In the panel, when one goes into gallery in the top folder and selects 'custom' it says: This folder does not contain any files to sort. So there seems to be no way of sorting folders except by name? I guess I could name the new folder something like 1.1Peru or 1.aPeru but seems to not be a good idea in the long run and renaming all folders every time seems a bit tedious.

Have I missed something obvious?

Edit: I don't want to sort by date and I'm running X3 version 0.21.2

Thanks!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: How to sort folders?

25 Jan 2017, 11:30

Your observations are correct, and I will be the first to admit that folder-sorting in X3 is a bit inferior. Images/files have all sort-options available, because we can store custom sort-order directly in the page.json data file, and image NAMES in a folder are often already created in the order the owner wants the images to display. Also, images have EXIF date, which is when photo is taken ... Folders do not have these attributes, and it is more complicated to store the sort order of all folders, thus we chose to keep it simple and rely on number.name for folder sorting.

In the FUTURE (later in 2017), we will likely introduce better options for folder sorting.
HiThere wrote:Suppose I have a folder named Travelling (or whatever) and that folder has, say, 30 subfolders (with only images) named 1.Albania, 2.Germany, 3.Finland.....30.USA and gets sorted by number. Now, if I want to add a new folder to the top of that stack (say 1.Peru), do I have to rename all of them so that 1.Albania->2.Albania, 2.Germany->3.Germany.....31.USA?
Ultimately, if you have a setup where you are frequently adding NEW folders, and always want the latest folder on TOP, you should really set DESCENDING sort order for folders (see screenshot below). That would set 1.Albania as the LAST folder, while 31.USA would display first. THEN, when you add a NEW folder and want to display it first, you would give it next number 32.NEWFOLDER (Eg. the higher number will display first).
Image
Unfortunately, this would require you to re-number all your existing folders, since the sorting will be reversed.
HiThere wrote:I guess I could name the new folder something like 1.1Peru or 1.aPeru but seems to not be a good idea in the long run and renaming all folders every time seems a bit tedious.
The easy fix, unless you want to use DESCENDING method noted above, would be to name your NEXT new folder 099.Peru. From there, you can add new folder on top 098.newer and 097.newest.

Thanks for feedback.
 
HiThere
Topic Author
Posts: 2
Joined: 09 Nov 2016, 06:28

Re: How to sort folders?

30 Jan 2017, 03:57

Thanks for the quick and informative reply, and the helpful tips!