fixed older php usort call