I'd like to sort objects by prop name, eg
const a = {
method: "GET",
url: "asd",
headers: {
Content: "application/json",
Authorization: "token",
},
}
then select only the object in the buffer, apply our function, and it would turn into
const a = {
headers: {
Authorization: "token",
Content: "application/json",
},
method: "GET",
url: "asd",
}
I know there's a sort-regexp-fields