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.

Reply via email to