In my code, i have a collection object. One part of the collection object is structured as follows
"id" => 1
"rate" => "{"p_1":"1","p_2":"2","p_3":"2.3","p_4":"3.5"}"
"currency" => 1
"desc" => "TEST"
In the above instance i have a key called rate, which has a json string as value.
What i want to do is sort the collection object by value p_1 contained in the range key.
p_1inrate?