sorted buyer types in cart popup highest price first
This commit is contained in:
@@ -113,7 +113,11 @@ function addDropdownBuyerTypeOptions(inBuyerTypes: I.TypeBuyerType, inSelector:
|
||||
if (!inBuyerTypes)
|
||||
return;
|
||||
|
||||
inBuyerTypes.forEach(arr => {
|
||||
console.log(inBuyerTypes);
|
||||
|
||||
inBuyerTypes.sort((a, b) => {
|
||||
return <any>b[1] - <any>a[1];
|
||||
}).forEach(arr => {
|
||||
if (arr[0])
|
||||
appendOption(inSelector, arr)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user