When I apply this regular expression, it works in my local server but not prod
function businessSize(a, b) {
return a.replace(/^\d+/g, "") - b.replace(/^\d+/g, "");
}
sizes.sort(businessSize);
sizes.reverse();
This is how it looks on my local server. and that is how I want it to look on prod also.
This is how it comes to shows in production. the 1-19 goes to the bottom. How can I make sure it stays on top