Looking to arrange an array object in Typescript based on a particular string value. I attempted the code below but it's not giving the desired result.
this.deviceapp = data.Devices[0].Products.sort((product)=>product.Status="Non-Compliant")
I aim to have "Non-Compliant" entries at the top, any suggestions on how to achieve this?