I have 2 array of which one is for order and another where the real value has to be sorted. How can I sort the array by comparing array? Any Idea will be really helpful. Thank You.
Order Array:
Array(
[0] => Array
(
[code] => subscription_bundles
[id_sequency] => 1
)
[1] => Array
(
[code] => pre_order
[id_sequency] => 2
)
[2] => Array
(
[code] => voucher
[id_sequency] => 3
)
[3] => Array
(
[code] => ppv
[id_sequency] => 4
)
[4] => Array
(
[code] => ppv_bundle
[id_sequency] => 5
)
)
And To Sort Array:
Array(
[monetization] => Array
(
[ppv] => Pay Per View
[ppv_bundle] => Pay-Per-View Bundle
[subscription_bundles] => Subscription
[voucher] => Voucher
)