How to Sort a Multi-dimensional Array by Value

How can I sort this array by the value of the “order” key?

Even though the values are currently sequential, they will not always be.

Array
(
    [0] => Array
        (
            [hashtag] => a7e87329b5eab8578f4f1098a152d6f4
            How to Sort a Multi-dimensional Array by Value => Flower
            [order] => 3
        )

    [1] => Array
        (
            [hashtag] => b24ce0cd392a5b0b8dedc66c25213594
            How to Sort a Multi-dimensional Array by Value => Free
            [order] => 2
        )

    [2] => Array
        (
            [hashtag] => e7d31fc0602fb2ede144d18cdffd816b
            How to Sort a Multi-dimensional Array by Value => Ready
            [order] => 1
        )
)

1
16

Leave a Comment