Created
March 7, 2022 18:04
-
-
Save Attaulla9/a6cbca5e3f9aabd144fddde1d0ad4099 to your computer and use it in GitHub Desktop.
Sort an array of object in javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sorting_Lead(value) { | |
return value.sort((a, b) => a.read_status - b.read_status); | |
}, | |
Ex: [{'phone':7777***,'lead_status':false},{'phone':9999***,'lead_status':true}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
made public