Help for this page

Select Code to Download


  1. or download this
    my @points;
    
    ...
    # adapt the method you use to fill your three arrays
    # to create this kind of data structure using the 
    # example above.
    
  2. or download this
    # Sort by z first, then sort by x for each point
    @points = sort { $a->{x} <=> $b->{x} } 
                   sort { $a->{z} <=> $b->{z} }
                        @points;