Help for this page

Select Code to Download


  1. or download this
    # Sort the objects according to the value of their `name` attribute.
    my @sorted_objects =
       keysort { $_->name }
          @unsorted_objects;
    
  2. or download this
    # Sort the objects according to the value of their uint id
    my @sorted_objects =
       ukeysort { $_->id }
          @unsorted_objects;