You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Stephen Williams (JIRA)" <ji...@apache.org> on 2007/10/17 18:03:51 UTC

[jira] Created: (VFS-177) Sort Order on ZipFileOrder

Sort Order on ZipFileOrder
--------------------------

                 Key: VFS-177
                 URL: https://issues.apache.org/jira/browse/VFS-177
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: Nightly Builds
         Environment: windows xp
            Reporter: Stephen Williams


Since my zip file contains a image sequence I need to sort it by name.

I had no way to sort so I modified the code below in the ZipFileObject.java



    /**
     * Lists the children of the file.
     */
    protected String[] doListChildren()
    {
    	ArrayList childrenArrayList = new ArrayList(children);
    	Collections.sort(childrenArrayList);
    	return (String[])childrenArrayList.toArray(new String[children.size()]);

        //previous code
        //return (String[]) children.toArray(new String[children.size()]);
    }


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.