Can I change the sort order of the content library?

I want to be able to view my most recent item when I am looking at results in the Content Library.  I haven't been able to find a place to set that.  Thanks.

Comments

  • I believe it repsects the setting used by the operating system fro that folder.

  • the sort order in the content library is controlled by daz. 
    I did four screen shots of folder in my content library
    one sorted by name 
    one sorted by name reversed
    one sorted by modification date
    one sorted by size. 
    ---
    in the stacked picture below we see a failure of the "one of these things is not like the other" 

    sort by all.jpg
    1537 x 897 - 554K
  • RiverMissyRiverMissy Posts: 322

    Richard Haseltine said:

    I believe it repsects the setting used by the operating system fro that folder.

    Thanks, Richard.  I have all mine set to Most Recently Modified first but I wasn't getting that order.  I will double check that right now.

  • RiverMissyRiverMissy Posts: 322
    edited August 2022

    Thanks guys.  I did some experiments yesterday and I could not affect the sort order.  How do I go about leaving a comment that this is a feature I would like to see?

    Post edited by RiverMissy on
  • Open a technical Support ticket and mark it as a Featrue request in the subject line.

  • Unless they have modified it recently it doesn't even follow the sort order of windows.
    Long ago one of the first hdr sets was 12 scenes from a National park. numbered 1 to 12.. 
    I had to rename them because the content library listed them as 1, 11, 12, 2, 3, .....
    ---
    googled for info because I rememeber the systems used to have the same issue which was subsequently fixed. 
    found this comment but I wouldn't be surprised if it applys. 
    =====
     

    Sorting: Fix the Incorrect Numerical Sort Order

    The webapp currently handles number sorting in an odd (non-standard) way.

    For example:
    --For three file names beginning with: 1, 2, and 12
    --The webapp would sort these as: 1, 12, 2
    Which clearly isn't in the correct numerical order.

    Windows (and Finder) sort these correctly as: 1, 2, 12

    ----------------
    awkward number sequence  is probably caused by this. 

    "This is the natural behavior for lexicographic sorting which treats everything as a string."
    so a string that begins with a 1 wlll always preceed one that starts with a 2, etc because a string is not numeric. 

     

     

  • RiverMissyRiverMissy Posts: 322

    Richard Haseltine said:

    Open a technical Support ticket and mark it as a Featrue request in the subject line.

    Thank you.  I can do that.

  • RiverMissyRiverMissy Posts: 322

    alan bard newcomer said:

    Unless they have modified it recently it doesn't even follow the sort order of windows.
    Long ago one of the first hdr sets was 12 scenes from a National park. numbered 1 to 12.. 
    I had to rename them because the content library listed them as 1, 11, 12, 2, 3, .....
    ---
    googled for info because I rememeber the systems used to have the same issue which was subsequently fixed. 
    found this comment but I wouldn't be surprised if it applys. 
    =====
     

    Sorting: Fix the Incorrect Numerical Sort Order

    The webapp currently handles number sorting in an odd (non-standard) way.

    For example:
    --For three file names beginning with: 1, 2, and 12
    --The webapp would sort these as: 1, 12, 2
    Which clearly isn't in the correct numerical order.

    Windows (and Finder) sort these correctly as: 1, 2, 12

    ----------------
    awkward number sequence  is probably caused by this. 

    "This is the natural behavior for lexicographic sorting which treats everything as a string."
    so a string that begins with a 1 wlll always preceed one that starts with a 2, etc because a string is not numeric.

    Wow, that is some really bad programming.  Takes me back to the 1970's type of stuff.  Thanks for the heads up because I was thinking about numbering them and it would have taken me awhile to figure this out.

  • PerttiAPerttiA Posts: 10,024

    alan bard newcomer said:

    Unless they have modified it recently it doesn't even follow the sort order of windows.
    Long ago one of the first hdr sets was 12 scenes from a National park. numbered 1 to 12.. 
    I had to rename them because the content library listed them as 1, 11, 12, 2, 3, .....
    ---
    googled for info because I rememeber the systems used to have the same issue which was subsequently fixed. 
    found this comment but I wouldn't be surprised if it applys. 
    =====
     

    Sorting: Fix the Incorrect Numerical Sort Order

    The webapp currently handles number sorting in an odd (non-standard) way.

    For example:
    --For three file names beginning with: 1, 2, and 12
    --The webapp would sort these as: 1, 12, 2
    Which clearly isn't in the correct numerical order.

    Windows (and Finder) sort these correctly as: 1, 2, 12

    ----------------
    awkward number sequence  is probably caused by this. 

    "This is the natural behavior for lexicographic sorting which treats everything as a string."
    so a string that begins with a 1 wlll always preceed one that starts with a 2, etc because a string is not numeric. 

    That's why one needs to use preceeding zeros.

    01 first pose
    02 second pose
    12 pose no twelve
    etc...

  • RiverMissyRiverMissy Posts: 322

    Sounds like an alpha sort instead of alphanumeric.  Like I said that goes way back wink.  Thanks for the assist.

  • I wrote a Daz Studio script that prepends file names with last modified date:

    function getScriptFolder() {		var fileName = getScriptFileName();		if ( fileName == "" ) {				return "";			}			var fileInfo = new DzFileInfo( fileName );			return fileInfo.path();}var scriptDirectory = getScriptFolder();// Get the current script directoryvar dir = new DzDir(getScriptFolder());// Create a QDir object for the script directory// Set the filter to only include .duf files// Get the list of .duf files in the directoryvar fileList = dir.entryList();if (fileList.length === 0) {    print("No .duf files found in the directory.");} else {    // Iterate through each file    for (var i = 0; i < fileList.length; i++) {        var fileName = fileList[i];        var filePath = scriptDirectory + "/" + fileName;		if (fileName.indexOf("_") !== -1) {            print("Skipping: " + fileName + " (contains '_')");            continue;        }        if (fileName.indexOf("duf") == -1) {            print("Skipping: " + fileName + " (not duf)");            continue;        }        // Get the file information        var fileInfo = new DzFileInfo(filePath);        // Get the last modified date of the file        var modifiedDate = fileInfo.lastModified();         // Extract year, month, and day        var year = modifiedDate.getFullYear();		var month = ("0" + (modifiedDate.getMonth() + 1)).slice(-2);		var day = ("0" + modifiedDate.getDate()).slice(-2);        var hours = ("0" + modifiedDate.getHours()).slice(-2);        var minutes = ("0" + modifiedDate.getMinutes()).slice(-2);        var seconds = ("0" + modifiedDate.getSeconds()).slice(-2);        // Format the modified date and time as YYYYMMDD_HHMMSS        var formattedDate = year + month + day + "_" + hours + minutes + seconds;              // Format the modified date as YYYYMMDD      //  var formattedDate = modifiedDate.toString("yyyyMMdd");               // Generate the new file name by prepending the date        var newFileName = formattedDate + "_" + fileName;        var newFilePath = scriptDirectory + "/" + newFileName;        // Rename the file        var file = new DzFile(filePath);        if (file.rename(newFilePath)) {            debug("Renamed: " + fileName + " -> " + newFileName );        } else {            debug("Failed to rename: " + fileName + " -> " + newFileName );       }    }}

     

  • aspiringartist said:

    I wrote a Daz Studio script that prepends file names with last modified date:

    function getScriptFolder() {		var fileName = getScriptFileName();		if ( fileName == "" ) {				return "";			}			var fileInfo = new DzFileInfo( fileName );			return fileInfo.path();}var scriptDirectory = getScriptFolder();// Get the current script directoryvar dir = new DzDir(getScriptFolder());// Create a QDir object for the script directory// Set the filter to only include .duf files// Get the list of .duf files in the directoryvar fileList = dir.entryList();if (fileList.length === 0) {    print("No .duf files found in the directory.");} else {    // Iterate through each file    for (var i = 0; i < fileList.length; i++) {        var fileName = fileList[i];        var filePath = scriptDirectory + "/" + fileName;		if (fileName.indexOf("_") !== -1) {            print("Skipping: " + fileName + " (contains '_')");            continue;        }        if (fileName.indexOf("duf") == -1) {            print("Skipping: " + fileName + " (not duf)");            continue;        }        // Get the file information        var fileInfo = new DzFileInfo(filePath);        // Get the last modified date of the file        var modifiedDate = fileInfo.lastModified();         // Extract year, month, and day        var year = modifiedDate.getFullYear();		var month = ("0" + (modifiedDate.getMonth() + 1)).slice(-2);		var day = ("0" + modifiedDate.getDate()).slice(-2);        var hours = ("0" + modifiedDate.getHours()).slice(-2);        var minutes = ("0" + modifiedDate.getMinutes()).slice(-2);        var seconds = ("0" + modifiedDate.getSeconds()).slice(-2);        // Format the modified date and time as YYYYMMDD_HHMMSS        var formattedDate = year + month + day + "_" + hours + minutes + seconds;              // Format the modified date as YYYYMMDD      //  var formattedDate = modifiedDate.toString("yyyyMMdd");               // Generate the new file name by prepending the date        var newFileName = formattedDate + "_" + fileName;        var newFilePath = scriptDirectory + "/" + newFileName;        // Rename the file        var file = new DzFile(filePath);        if (file.rename(newFilePath)) {            debug("Renamed: " + fileName + " -> " + newFileName );        } else {            debug("Failed to rename: " + fileName + " -> " + newFileName );       }    }}

    Just be aware that that will break their links to the Content Management System, which will have an impact on various tools (and on more in the future)

  • alan bard newcomeralan bard newcomer Posts: 2,424
    edited June 23

    Richard Haseltine said:

    aspiringartist said:

    I wrote a Daz Studio script that prepends file names with last modified date:

    function getScriptFolder() {		var fileName = getScriptFileName();		if ( fileName == "" ) {				return "";			}			var fileInfo = new DzFileInfo( fileName );			return fileInfo.path();}var scriptDirectory = getScriptFolder();// Get the current script directoryvar dir = new DzDir(getScriptFolder());// Create a QDir object for the script directory// Set the filter to only include .duf files// Get the list of .duf files in the directoryvar fileList = dir.entryList();if (fileList.length === 0) {    print("No .duf files found in the directory.");} else {    // Iterate through each file    for (var i = 0; i < fileList.length; i++) {        var fileName = fileList[i];        var filePath = scriptDirectory + "/" + fileName;		if (fileName.indexOf("_") !== -1) {            print("Skipping: " + fileName + " (contains '_')");            continue;        }        if (fileName.indexOf("duf") == -1) {            print("Skipping: " + fileName + " (not duf)");            continue;        }        // Get the file information        var fileInfo = new DzFileInfo(filePath);        // Get the last modified date of the file        var modifiedDate = fileInfo.lastModified();         // Extract year, month, and day        var year = modifiedDate.getFullYear();		var month = ("0" + (modifiedDate.getMonth() + 1)).slice(-2);		var day = ("0" + modifiedDate.getDate()).slice(-2);        var hours = ("0" + modifiedDate.getHours()).slice(-2);        var minutes = ("0" + modifiedDate.getMinutes()).slice(-2);        var seconds = ("0" + modifiedDate.getSeconds()).slice(-2);        // Format the modified date and time as YYYYMMDD_HHMMSS        var formattedDate = year + month + day + "_" + hours + minutes + seconds;              // Format the modified date as YYYYMMDD      //  var formattedDate = modifiedDate.toString("yyyyMMdd");               // Generate the new file name by prepending the date        var newFileName = formattedDate + "_" + fileName;        var newFilePath = scriptDirectory + "/" + newFileName;        // Rename the file        var file = new DzFile(filePath);        if (file.rename(newFilePath)) {            debug("Renamed: " + fileName + " -> " + newFileName );        } else {            debug("Failed to rename: " + fileName + " -> " + newFileName );       }    }}

     

    Just be aware that that will break their links to the Content Management System, which will have an impact on various tools (and on more in the future) 

    If we just change the name of the save file will that effect the links within the file? 
    ===
    As it is even auto saving with numbers appended etc will only produce names that will show up farther down the list  
    ---
    Same thing will happen with preappended dates because Daz is still going to sort in ascending order so 010324 will still be read as newer than 010326, right.
    so even if a save subsets of updated characters I'll have to move the older verions from the base directory. 
    ---
    Photoshop will not list by modified date unless you set the folder with images to that format and then it will
    so programs can read the default listing in a folder if the program doesn't over ride the sequence. 
    ====
    my scene files are saved in a folder on my C drive named 03 dazScenes and it opens with the newest first. 
    But setting that folder as a directory in the content library and Daz displays it in the old alphabetical format. 
    So if Daz has the capicity to reorder the display of the folder it should be possible with a bit coding allow directorys to have the order in which there content is displayed 
    Note we can display as icons as a grid or a list. 
    --
    first image files on C drive 
    second image same files as seen by daz 
    So daz controls the order and obviously it wants to go with alphabetical for products
    but scene files and subsets while they are dufs are not product files.

     

    daz scenes on C.jpg
    3421 x 1863 - 765K
    daz scen as read by dz.jpg
    2413 x 995 - 299K
    Post edited by alan bard newcomer on
  • Richard HaseltineRichard Haseltine Posts: 110,877

    The CMS has nothing to do with the links within the file, as long as you don't move things in the data and Runtime folders they should be fine - breaking the CMS will effect features that rely on metadata rather than the data in the file itself (e.g. any content pane except the Content Library>Daz Studuio Formats, Poser Formatss, or Other Import Formats).

Sign In or Register to comment.