PHP sort multidimensional array by value

Posted by stef on Stack Overflow See other posts from Stack Overflow or by stef
Published on 2010-04-23T13:54:26Z Indexed on 2010/04/23 14:03 UTC
Read the original article Hit count: 144

Filed under:

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
            [title] => Flower
            [order] => 3
        )

    [1] => Array
        (
            [hashtag] => b24ce0cd392a5b0b8dedc66c25213594
            [title] => Free
            [order] => 2
        )

    [2] => Array
        (
            [hashtag] => e7d31fc0602fb2ede144d18cdffd816b
            [title] => Ready
            [order] => 1
        )
)

© Stack Overflow or respective owner

Related posts about php