How can I sort files in a folder by name?

How can I sort files in a folder by name? iFS first sort files that starts with upper-case letter and then files with lower-case letter.
Like:
A_file
B_file
a_file
b_file
I want:
A-file
a_file
B_file
b_file
This doesn't help:
String[] sort_attributes = {"NAME"};
boolean [] sort_orders = {true};
SortSpecification sort = new SortSpecification(sort_attributes, sort_orders);
currentFolder.setSortSpecification(sort);
Do I have to get all items in a folder and then sort them?
/Elin

I do not think there is a way to do that without add-ons
There are a couple of workarounds I am aware of
* Add the bookmarks manually in the bookmarks library and choose the position. That is using Show all bookmarks -> open required folder -> select a position and right click -> add new bookmark <br />Rather a slow and clumsy process
* Sort a folder and copy it. If you sort the folder contents then copy and paste them they remain in that order when pasted.
There are add-ons but I have not tried them. For example
* https://addons.mozilla.org/firefox/addon/simplesort-bookmarks/
* https://addons.mozilla.org/firefox/addon/auto-sort-bookmarks/
There will be others available and take note of the advice to backup bookmarks manaully.
* [[Restore bookmarks from backup or move them to another computer#w_manual-backup]]_manual-backup

Similar Messages

  • How can i sort files and pick the latest among them

    Hi ABAPers
    I have a problem with sorting files. I have files coming from FTP into my Presentation server.Files are like
    3160SNIM_2007061201090010.in
    3160SNIM_2007061201190011.in
    3160SNIM_2007061201290015.in
    3360SNIM_2007061201490017.in
    3360SNIM_2007061201390014.in
    3360SNIM_2007061201490018.in
    3360SNIM_2007061201190013.in
    Among these files i should filter the files with 3160 and 3360. and among filtered files i should pick the most recent file of both 3160 and 3360 and put them in another internal table. I am getting stuck how to justify this requirement. Not only 3160 and 3360 i have few more like that. Please help me out.

    HI,
    let us  say itab contains ur files.
    data : begin of jtab occurs 0,
              fnamedate(20) type c,
              time(20) type c,
              end of jtab.
    data : begin of ktab occurs 0,
             filename(30) type c,
             end of ktab.
      Loop at itab.
    lv_len = strlen(itab-file).
      jtab-fnamedate = itab-file+0(17).
    lv_len = lv_len - 17.
    jtab-time  = itab+17(lv_len).
    append jtab.
      endloop.
    sort jtab by fnamedate time descending.
    loop at jtab.
    at new jtab-fnamedate.
    concatenate jtab-fnamedate jtab-time into ktab-filename.
    append ktab.
    endat.
    endloop.
    After this loop ktab will contain latest files.
    Thanks
    Mahesh

  • How can I sort bookmarks in plain folder?

    any way to simply gain access to the bookmarks in a plain windows folder so I can sort them in a manner that makes sense to me just like I used to do with Internet Explorer instead of having to learn this whole miserable procedure?

    no I surely wouldn't want to sort them by editing a text file, but here I can't even see everything at once, and it is only a rolldown menu which disappears if I click on anything else. The help for the library says there is a bug so that I cant permanently sort things in there, and anyway, I can only see half or one third of the whole mess at a time, even in the library file, because I cant spread it to multiple columns, only one as high as my screen. Maybe I can export it all to Internet Explorer, sort it there, and re-import it to Firefox? In IE I will simply have normal folders and shortcut files, nice and simple. Is there a procedure for doing that described somewhere? Or is there an add-on for firefox that it can be exported to and re-imported from for sorting?

  • Applescript, how can i sort files by the way they start?

    I have a folder on the Desktop called "HotFolder" This is where all the images are stored.
    They are uniquely named (either jpg's or PSD's) They begin FR10xxxxxxxxxxxx ES20 TM15 etc, Each of these refer to image type.
    On the Desktop there are folders named FR10_WK10, ES20_WK10, TM15_WK10
    Each week the folder name changes but only the digits after WK10 So the first 4 digits are consistent.
    I'm looking for an applescript to sort these files so it sorts all files beginning with FR10 to go into folder  that begins FR10 and TM15 in to folder that begins TM15.
    I've very little experience with it applescript, only good and modifying it after. So if anyone can help me out with this it would be much appreciated.
    Many Thanks

    Jacques Rioux wrote:
    MattJayC wrote:
    I get the response
    error "Finder got an error: Can’t get 1." number -1728 from 1 to «class furl»
    I think that it might not work as the folder name doesn't always start with the same ie
    Yes, the folder doesn't exist.
    Here another approach
    tell application "Finder"
        set theHotFolder to folder "HotFolder Copy"
         move (files of theHotFolder whose name starts with "BU") to (get first folder of desktop whose name starts with "Bugess2do")
         -- this moves every "TM...." and "CC...." files  to folder "TM15...."
         move (files of theHotFolder whose name starts with "TM" or name starts with "CC") to (get first folder of desktop whose name starts with "TM15")
         --- another example
         move (files of theHotFolder whose name starts with "FR") to (get first folder of desktop whose name starts with "FR10")
         move (files of theHotFolder whose name starts with "ES") to (get first folder of desktop whose name starts with "ES20")
    end tell
    Add  lines for other name.
    SUPERB WORKS LIKE A DREAM!!!!!
    Thankyou

  • How can I sort bookmarks within a folder by date such that this is apllied not only in the library but also on the toolbar?

    Hello,
    I have several folders on my firefox toolbar which I use to sort new bookmarks by topic. If I add a new bookmark to a folder it is alwas placed at the bottom (below existing bookmarks) which is somewhat annoying with a increasing number of bookmarks. I would like to have the bookmarks recently added at the top of the folder (above existing bookmarks).
    It's no problem to sort them this way within the library. But back at the toolbar everthing remains the same. The only option that seems to work here ist 'sort by name'.
    Is there any way to sort the bookmarks by 'date added' such that new bookmarks are placed on top and this is applied also outside the library?
    I hope you get my problem!
    Thanks!

    I do not think there is a way to do that without add-ons
    There are a couple of workarounds I am aware of
    * Add the bookmarks manually in the bookmarks library and choose the position. That is using Show all bookmarks -> open required folder -> select a position and right click -> add new bookmark <br />Rather a slow and clumsy process
    * Sort a folder and copy it. If you sort the folder contents then copy and paste them they remain in that order when pasted.
    There are add-ons but I have not tried them. For example
    * https://addons.mozilla.org/firefox/addon/simplesort-bookmarks/
    * https://addons.mozilla.org/firefox/addon/auto-sort-bookmarks/
    There will be others available and take note of the advice to backup bookmarks manaully.
    * [[Restore bookmarks from backup or move them to another computer#w_manual-backup]]_manual-backup

  • How to list sorted files in a folder?

    I am in need of creating a java program which should perform the following.
    1. Read ALL the files located under c:\main dir
    2. Append the read files into a Email.log file in the order in which the files are created.
    For example: main directory has three files. A.txt(created on Aug1st2009,10:00AM), B.txt(created on Aug1st2009,10:01AM),C.txt(created on Aug1st2009,10:02AM)
    Email.log file should contain the contents of A.txt then B.txt then C.txt. The contents of old file should appear in the top and the content of latest file(C.txt) shouled appeared in the bottom of Email.log file.
    Hope you understand my requirements. could you help me out in starting with sample code?

    Pannar wrote:
    starting with sample code?No!
    It is your job to write the code not ours. When you have done that and have encountered a problem then come back and ask a specific question including all the relevant information.
    As far as I know there isn't anyway to determine the creation date of a File in core Java. There maybe a third party lib that can do it.

  • I have deleted my private folder and do not have enough space to reinstall my operating system. How can i transfer files from my hard drive to an USB drive to free up space when the operating system isn't working. or do i need to erase disk?

    i have deleted my private folder and do not have enough space to reinstall my operating system. How can i transfer files from my hard drive to an USB drive to free up space when the operating system isn't working. or do i need to erase disk through disk utilities without erasing data (but will it delete my programs such as photoshop, office, creative suite?

    Connect the computer to another Mac and put it in FireWire Target Disk mode, or use the Disk Utility to clone the drive or image specific folders with the USB drive as the target. After you've copied off everything you want, you'll likely need to erase the drive and reinstall the applications.
    (69695)

  • How can I OPEN files I just downloaded? They're on the DOWNLOADS screen of Firefox but I can't open them even after double-clicking? And they're not on the FOLDERS as well. I tried RIGHT-CLICK and the "open dowloading folder" or something does not work! P

    How can I OPEN files I just downloaded? They're on the DOWNLOADS screen of Firefox but I can't open them even after double-clicking? And they're not on the FOLDERS as well. Even the right-click is not working ... the "open containing folder" does not work.
    == This happened ==
    Not sure how often
    == ALWAYS! ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)

    Open Containing Folders is never active.

  • Hi my question is how can I sort and delete photo files which I have had backed up multiple times? Another way how can I get rid of from the duplicate?

    Hi my question is how can I sort and delete photo files which I have had backed up multiple times? Another way how can I get rid of from the duplicate?

    Provide the name of the program you are using so a Moderator may move this message to the correct program forum
    The Cloud is not a program, it is a delivery process... a program would be Photoshop or InDesign or Muse or ???

  • How can I sort photos by file name in Photos?

    New Photos seems to be very limiting, even compared to iPhoto.  How can I sort photos by filename?  Many photos that worked in iPhoto, can't be viewed in Photos.

    Welcome to the Apple Community.
    Titles don't use the filename any longer, but if you must have them you might be interested in Léonie's script here.
    https://discussions.apple.com/message/28052762#28052762

  • Photos for iOS: How can i sort all of my albums automatically in alphabetical order

    Hey there,
    first off, why isn't there a a community for the new Photos app?
    Anyway, here is my problem:
    How can i sort my albums on the new Photos app on iOS?
    I think it's not possible at the moment.
    I am using the iCloud Photo library and uploadet all of my 15.000 photos from the last 15 years.
    And because of that, i now have many many albums on Photos now.
    Overall i love the new app and i love the iCloud Photo library, but i cannot sort my albums on the iOS app automatically in alphabetical order.
    I can sort albums manual, but who wants that, when you have so many of them???
    I have Photos on my Mac too and there i am able to do sort them in alphabetical order. But it is not adopted to iOS or the iCloud Web-App.
    Because of that, i have a complete picture chaos on my iPhone and when i am looking for this one pic in that one album it takes me forever to find it.
    So please Apple, fix this and we all can live happily ever after!
    Thank you!

    Moments in Photo are the new Events.  T
    here's a way to simulate events in Photos.
    When the library was first migrated there was a folder created titled iPhoto Events and all migrated iPhoto Events are represented by an album in the folder. To open the sidebar if it's not open use the Option+Command+S key combination.
    When new photos are imported into the Photos library go to the Last Import smart album, select all the photos and use the File ➙ New Album menu option or use the key combination Command+N.  Name it as desired.  It will appear just above the iPhoto Events folder where you can drag it into the iPhoto Events folder
    When you click on the iPhoto Events folder you'll get a simulated iPhoto Events window showing all of the albums.
    The downside to this simulation is that the Album/Events can only be sorted automatically by Title while viewed in the Folder in the main window or in the sidebar. But they can be sorted manually.
    Ask Apple for more sorting options in Photos via https://www.apple.com/feedback/photos.html.

  • How can I sort lines of data (alphabetically) in the new pages 5.0?

    How can I sort lines of data (alphabetically) in the new pages 5.0?
    It was very simple to do in the previou version of pages.

    I'm not sure why people are torturing themselves with Pages 5 given the nearly universal outcry on this forum and the incredibly negative reviews elswhere, such as the App Store.
    Pages 4.3 should still be in an iWorks folder within your Applications folder.  Just use that.
    Please remember to tell Apple what we need from them at:
    http://www.apple.com/feedback/pages.html

  • HT1364 I have moved my library to an external hard drive and changed the location of the iTunes media folder in Preferences, but every time I close and re-open iTunes, I have to do it all over again.  How can I make the iTunes media folder change permanen

    I have moved my library to an external hard drive and changed the location of the iTunes media folder in Preferences, but every time I close and re-open iTunes, I have to do it all over again.  How can I make the iTunes media folder change permanent?  I have an older machine with Windows XP.

    I don't believe mounting the hard drive should be necessary, unless you have several external drives and want your computer to recognise them as folders, rather than drives. I've never had to mount a hard drive, ever. If you don't know how to do it, then it shouldn't be necessary now.
    Try this:
    Prepare iTunes so that it can see the external drive.
    Make a note of which drive-letter the external drive has been allocated. (Look in Windows Exploer)
    Look at the file location for a song. Make sure it plays (and therefore that iTunes has found it). Highlight it and select File/Get Info/Summary>Where: and make a note of the drive letter for that song.
    Close and shut down the computer.
    The next time you turn the computer on again, connect the external drive
    Before you start iTunes - check the external drive in Windows Explorer. Is it ready, does it have the same drive-letter that it had last time? Can you go into the drive and see the files on it?
    Once you can, start iTunes. (If the drive lettter has changed, you need to work out why before going any further.)
    If iTunes fails to find your external drive, you need to check where iTunes is looking for your Library.
    Select the same song you checked before (presumably iTunes can no longer find it). Follow the procedure for locating it. You should be able to see where iTunes thinks the file is. It's the drive that counts. Which drive letter is iTunes looking at? Is it the same one that it was previously (which should also be the same one that the drive has now).
    What happens, which step do you have problems with?
    Message was edited by: the fiend

  • How can I copy file/folders from and to hard drives? How can I have two or more windows of explorer so that I can drag and drop from one hard drive to another?

    Hi,
    I am a new customer (purchased last week) of MacBookPro (latest) and its my first ever Apple laptop.
    I am almost lost to find the operating tools.
    1. How can I copy files from hard drive to computer and vis-a-versa?
    2. Only can browse one but how can I have two or more browses at the same time like in MS windows?
    3. No right click works on track pad?
    4. Is there application/ program compatible to MS office? If so how much and how can I purchase?
    5. Is there AutoCAD program that is compatible to MS Window AutoCAD? and if yes how much and how can I purchase?
    I will very much appreciate if you could email me the with the solution/answers please.
    Regards,
    Khagendra Limbu

    1) For some reason this happens once in a while with FAT32 enabled external harddrives. I have no idea why this happens but it most easily solved by reformatting the drive. First make sure you've copied everything from the external drive to your internal harddrive. You've done this earlier so I assume you know how to do this.
    Now the reformatting part. Open Finder and go to Applications. Look for the folder called "Utilities". Click on it. In it you find a program called "Disk Utility". Click on it. Now look for the external drive. You probably see two entries for the disk. Click on the one that contains the name of the drive NOT the one that describes the disk (Like for example 320.07 GB Samsung S2 Portable Media).
    Now you see four tabs in the righthand part of the window. They're called "First Aid", "Erase", "RAID" and "Restore". Click on "Erase". This opens the tab with (amongst others) a dropdownbox (Format) and a textbox (Name) . In the dropdownbox select "Mac OS Extended (Journaled). Take note! This selection disables usage of the drive with Windows PC's. If your goal is to share the drive with Windows PC's select the MS-DOS FAT option.
    Enter a label for the drive in the textbox Name. Now click on the button "Erase". This will format the drive.
    Now when it's done you can copy back all the items you've copied to your internal harddrive earlier.
    2) Opening two windows like Explorer on Windows is opening two Finder windows on the Mac. Simply click on the background. In the menubar you items like 'Finder", "File", "Edit", "View", et cetera. Click on "File" and "New Finder Window". Do this two times. Alternatively you can click on the background and press CMD-N two times.
    3) You can right click on the trackpad. This however depends on if you've enabled the feature in System Preferences. In the topmenubar click on the Apple icon and select "System Preferences". Now look for Trackpad in Hardware. Click on it. You see three tabs with the names "Point & Click", "Scroll & Zoom" and "More Gestures". Select "Point & Click" and look for "Secondary Click'. Make sure it is checked and make sure it has written "Click or tap with two fingers" written beneath "Secondary Click". When you're done exit System Preferences. Now select the background and tap with two fingers on the trackpad. This should open the contextuel menu with options like "New Folder", "Get Info" et cetera.

  • How can I upload the back-up folder into iWeb?

    How can I upload the back-up folder into iWeb?
    Hi
    I've set up my website using iWeb 08, always keeping the latest version in iWeb and backing it up in a folder on my HD.
    Yesterday I got rid of the current design iWeb and tried to upload the back-up folder into the iWeb application. No success.
    How can I upload the back-up folder into iWeb? Many thanks for your help.

    Welcome to the discussions. Only iWeb's Domain file can be opened in iWeb. See this Apple doc on How to back up MobileMe data. It says:
    Any websites you have published with iWeb should still be available within iWeb. iWeb stores everything in a Domain file, normally located in the ~/Library/Application Support/iWeb folder (although it can be moved). If you no longer have this file, you can view your currently published pages and manually recreate them within iWeb, but there is no way to import published pages back into iWeb. You can manually back up the Domain file, or use Backup to back it up.
    Presumably you've been prudently making backups of your Mac's internal HD, so search there for the Domain file's invisible extension:
    .sites2
    If you can't find your old Domain file, paragraph 2.3 of this FAQ page gives some tips on how to use published files, graphics, photos, etc., to help rebuild the site from scratch:
    http://iwebfaq.org/site/iWebBackupretrieve.html

Maybe you are looking for