So I have a json file that looks like so https://api.myjson.com/bins/zux0q (also text below)
{"beryllium":[{"oem":"Xiaomi","maintainer":"Lup Gabriel ","nick":"gwolfu","crversion":"6.0","builddate":"20191110","download":"https://url","forum":"https://url"}],"cheeseburger":[{"oem":"OnePlus","maintainer":"Pranav Vashi ","nick":"neobuddy89","crversion":"6.0","builddate":"20191107","download":"https://url","forum":"https://url"}],"enchilada":[{"oem":"OnePlus","maintainer":"Hildo Boerboom ","nick":"firebird11","crversion":"6.0","builddate":"20191102","download":"https://url","forum":"https://url"}],"fajita":[{"oem":"OnePlus","maintainer":"Hildo Boerboom ","nick":"firebird11","crversion":"6.0","builddate":"20191102","download":"https://url","forum":"https://url"}],"guacamole":[{"oem":"OnePlus","maintainer":"Lup Gabriel ","nick":"gwolfu","crversion":"6.0","builddate":"20191110","download":"https://url","forum":"https://url"}],"oneplus2":[{"oem":"OnePlus","maintainer":"Lucian Iordache ","nick":"lucyr03","crversion":"6.0","builddate":"20191103","download":"https://url","forum":"https://url"}]}
Now I'd like to sort alphabetically by OEM and then by key name.
I tried some code but can only make it sort by key name and ran out of ideas .
I need some multidimensional array sort I guess.
So something like this:
OnePlus =>>
cheeseburger =>>
maintainer:...
nick:...
crversion:...
builddate:...
download:...
forum:...
enchilada ==>
maintainer:...
nick:...
crversion:...
builddate:...
download:...
forum:...
fajita ==>
maintainer:...
nick:...
crversion:...
builddate:...
download:...
forum:...
guacamole ==>
maintainer:...
nick:...
crversion:...
builddate:...
download:...
forum:...
oneplus2 ==>
maintainer:...
nick:...
crversion:...
builddate:...
download:...
forum:...
Xiaomi ==>
beryllium ==>
maintainer:...
nick:...
crversion:...
builddate:...
download:...
forum:...
Any help is highly appreciated!