Merge pull request 'sorted buyer types in cart popup highest price first' (#15) from staging into master

Reviewed-on: http://localhost:3000/zino/seatmapv2/pulls/15
This commit is contained in:
zino
2021-07-28 10:13:30 +02:00

View File

@@ -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)
});