[
{
"id": 1,
"name": "blabla",
"image": null,
},
{
"id": 2,
"name": "blabla",
"image": "iVBORw0KGgo",
}
]
json.sort((prev: any, next: any) => previmage - next.image)
json.sort(({ image: a }, { image: b }) => (!a && !b ? 0 : !a ? -1 : 1));