Skip to main content
Skip table of contents

Enabling ASCII Sort order for Listings of Users, Files and Folders

Beginning with FileCloud 23.241, natural sort order is the default for listings of user names, files, and folders. Prior to FileCloud 23.241, ASCII sort order was the default.


  • Natural sort order is used by default for listings of users, files, and folders in FileCloud. This option uses case-insensitive ordering of entries.
  • The default can be changed to ASCII sort order using the setting shown below.


Natural Sort OrderASCII Sort Order
  1. Items sorted on numerals.
  2. Items sorted without case sensitivity.
  1. Items sorted on numerals.
  2. Items sorted on uppercase letters.
  3. Items sorted on lowercase letters.


To switch from Natural sort order to ASCII:

Enable ASCII sorting by setting the following key in the file  WWWROOT\config\cloudconfig.php .

TEXT
define("TONIDOCLOUD_NATURALORDER_SORTING", 0);

Natural sorting can be reenabled by setting the key value to 1.


For systems running prior to FileCloud 23.241

If you have not previously switched from ASCII sort order to Natural sort order and wish to do that now, use the following procedure:

Click here to expand...


  1. If your FileCloud instance started running at version 21.1 or higher, skip to step 2.
    If your FileCloud instance started running prior to FileCloud 21.1, first run the following command from the command line.
    1. On Linux

      CODE
      # cd /var/www/resources/backup
      # php ./preparenaturalsort.php
    2. On Windows

      CODE
      > cd c:\xampp\htdocs\resources/backup 
      > C:\xampp\php\php.exe ./preparenaturalsort.php
      This command can be run multiple times if needed to make sure there are no unprepared items.

  2. Enable natural sorting by setting the following key in WWWROOT\config\cloudconfig.php.
    TEXT
    define("TONIDOCLOUD_NATURALORDER_SORTING", 1);
    ASCII sorting can be reenabled by setting the key value to 0 or completely removing it.
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.