Sort an array of objects PHP
I have this class:
class competitor{
public $name;
public $tops;
public $bonus;
public $tries_top;
public $tries_bonus;
}
I have an array with competitors classes objects in it and I would like
sort the array in the next order:
The greatest number of tops.
The greatest number of bonus.
The least number of tries_top.
The least number of tries_bonus.
No comments:
Post a Comment