-
-
Save paulspringett/5a7ea4fd62fb9900b43a2781b0fee375 to your computer and use it in GitHub Desktop.
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
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