Re: [PHP] sort()-help needed

2002-08-20 Thread Jason Wong
On Wednesday 21 August 2002 06:41, Øystein Håland wrote: > "Put them into an array and sort() the array. The loop through the sorted > array and output at that point." > > Just what I try. But, because of my lack of understanding, the output is my > problem: > You're not doing what has been sugg

Re: [PHP] sort()-help needed

2002-08-20 Thread Øystein Håland
"Put them into an array and sort() the array. The loop through the sorted array and output at that point." Just what I try. But, because of my lack of understanding, the output is my problem: function createLinks() { $p = 0; $handle=opendir("."); echo "\n"; while ($file = readdir($handle)){

Re: [PHP] sort()-help needed

2002-08-20 Thread Rasmus Lerdorf
Put them into an array and sort() the array. The loop through the sorted array and output at that point. -Rasmus On Wed, 21 Aug 2002, Øystein Håland wrote: > When calling the function createLinks() I get an unsorted result, and that's > NOT what I want. But I'm not able (lack of knowlegde) to