I have to sort below given array by Priority. If priority value is 0 then not include in sorting array. I have tried many ways but not getting output as expected.
Array
(
[recently_viewed] => Array
    (
        [priority] => 1
        [no_of_products] => 1
    )
[recently_visited_cat] => Array
    (
        [priority] => 1
        [no_of_products] => 1
    )
[last_ordered_items] => Array
    (
        [priority] => 3
        [no_of_products] => 3
    )
[searched_based] => Array
    (
        [priority] => 0
        [no_of_products] => 4
    )
[cart_based] => Array
    (
        [priority] => 1
        [no_of_products] => 5
    )
[wishlist_based] => Array
    (
        [priority] => 1
        [no_of_products] => 6
    )
[sku_based] => Array
    (
        [priority] => 0
        [no_of_products] => 7
    )
)
Please help me with this.
 
     
     
    