Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

How to sort folders in Explorer

Last post 08-07-2012, 7:36 AM by Minisuit. 2 replies.
Sort Posts: Previous Next
  •  07-04-2012, 8:56 AM 74076

    How to sort folders in Explorer

    Just purchased PHP Image Gallery and using Explorer Layout and have question about how to sort the category folders?

    JBWebWorks
  •  07-09-2012, 1:30 PM 74107 in reply to 74076

    Re: How to sort folders in Explorer

    Hi JBWebWorks,
     

    1.    Open file ”\phpgallery\resources\Layout\Explorer\Code.js”

     

    2.    Add the code below to the top

     

           function BubbleSort(arr)

           {

            var temp;

            var exchange;

            for(var i=0; i<arr.length; i++)

            {

                exchange = false;

                for(var j=arr.length-2; j>=i; j--)

                {

               

                    if(arr[j+1].Title <arr[j].Title)

                    {

                        temp = arr[j+1];

                        arr[j+1] = arr[j];

                        arr[j] = temp;

                        exchange = true;

                    }

                }

                if(!exchange) break;

            }

            return arr;

         }

     

    3.    Find section below

     

    this._selecteddiv=null;

     

    4.    Change it to

     

    this._selecteddiv=null;

    this._categories=BubbleSort(this._categories);

    Regards,
     
    Ken 
  •  08-07-2012, 7:36 AM 74354 in reply to 74107

    Re: How to sort folders in Explorer

    To Change "Sort by" and "Group by" View using the View Menu
    1. Open the Windows Explorer folder or library window that you wish to change the view of the icon sizes in.
    2. Click on the View menu bar item and select either the Sort By or Group by arrangement options, then select the column name and 
    Ascending or Descending order for how you want the window arranged by. 
    1. Open the Windows Explorer folder or library window that you wish to change the view of the icon sizes in.
    2. To Sort by or Group by the Column Headings Name Menu
    A) Move your mouse pointer on the column headings name that you want to have the window organized by, then click on the arrow to the 
    right of it. (See screenshots below step 3)
    B) You can now select to Sort by or Group by the window by that column headings name. 


    Best Regards,
    Navin Patel-Affiliate Manager
    Minisuit Affiliate Program
    Minisuit DOT com
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems