Skip to content

Instantly share code, notes, and snippets.

@paulspringett
Created August 28, 2018 14:42
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 paulspringett/5a7ea4fd62fb9900b43a2781b0fee375 to your computer and use it in GitHub Desktop.
Save paulspringett/5a7ea4fd62fb9900b43a2781b0fee375 to your computer and use it in GitHub Desktop.
brands.sort((a, b) => {
return a.label.localeCompare(b.label);
});
=> [
{ label: "!Solid", value: 668 },
{ label: "AllSaints", value: 2501 },
{ label: "Ben Sherman", value: 2124 },
{ label: "Côte et Ciel", value: 1532 },
{ label: "Drôle de Monsieur", value: 137 },
{ label: "Études", value: 17 },
{ label: "Samsøe & Samsøe", value: 1571 },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment