0

Hey guys. I've been putting some really good thought into this and I can't seem to figure out a good solution.
What would be a logical way or sorting the following by their "number" value.

$someArray = [
    [
        "country"   => "US",
        "number"    => 552
    ],
    [
        "country"   => "GB",
        "number"    => 817
    ],
    [
        "country"   => "ES",
        "number"    => 621
    ],
    [
        "country"   => "ZA",
        "number"    => 271
    ]
];

Thanks!

2
Contributors
2
Replies
8
Views
2 Years
Discussion Span
Last Post by matrixdevuk
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.