somewhere in here:
else{
// Generate a list of files within the directory
$path = $this->_rt.$cat.'/'.$evt.'/';
$d = @dir($path);
while(FALSE !== ($f = $d->read())){
if($f != '.' && $f != '..' && !is_dir($path.$f)){
// This time, we're only getting all the image files from within our path.
// This is to help us create the "next" and "previous" links.
if($this->check_img($path.$f)===TRUE){
$this->lst[] = $f;
}
}
}
$this->gen_crumbs($cat, $evt, $pic);
// Get the proper image to display
$this->gen_pic($cat, $evt, $pic);
}
you'll have to order the array that is being created, i wouldn't say you are doing anything wrong, it's just the nature of reading directories, it doesn't display order like one would think (with numbers anyway)