Skip to content

Instantly share code, notes, and snippets.

@Attaulla9
Created March 7, 2022 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Attaulla9/a6cbca5e3f9aabd144fddde1d0ad4099 to your computer and use it in GitHub Desktop.
Save Attaulla9/a6cbca5e3f9aabd144fddde1d0ad4099 to your computer and use it in GitHub Desktop.
Sort an array of object in javascript
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}]
@Attaulla9
Copy link
Author

made public

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment