tags:

views:

39

answers:

1

My English is poor so I will make it short. Right now, I have imzip.zip which has three txt files:

a.txt
b.txt
c.txt

When I try to load imzip.zip using:
http://pastebin.com/m1d974990
It loads the files alphabetically. In this case:

a.txt 
b.txt 
c.txt

However, I would like to be able to have the class load on different variables such as by size, date or simply random.

The problem is I have no idea how I would go about modifying the class to fit my needs.

I would really appreciate your help! :D

A: 

Chacha102, thanks for the improvement.
I feel so stupid.
the php class returns an array ...

Jesse
Welcome to SO Jesse. When you want to reply, there is no need to create an answer. You can edit your original question, or add a comment, to interact with people.
Pekka
Why not sort the array outside the class the way you want to, and then fetch the files one by one in the new order?
Pekka