Hello,
I have a class like this one
Class foo
{
public $sum;
}
And I have an array of instances based on this class. When I use
ksort() the array is sorted by key, next I want to sort it by the $sum
property.
How can I do it?
I have a class like this one
Class foo
{
public $sum;
}
And I have an array of instances based on this class. When I use
ksort() the array is sorted by key, next I want to sort it by the $sum
property.
How can I do it?
Comment