Php Sort Array Of Objects By Function Stata Commands