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: 300

    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: 300
    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: 300

    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: 300

    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: 300

    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 );       }    }}

     

  • Richard HaseltineRichard Haseltine Posts: 100,781

    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)

Sign In or Register to comment.