window.processing = true;

Shop

Not sure where to start? Help me buy

window.sortBy = "best-selling";
Space Hopper

Space Hopper

Double IPA Cosmic. Hoppy. Bold. 7.0%
£19.99
${ cartQty[39530700734539] }
Public House

Public House

IPA Amber. Fresh. Hoppy. 4.2%
£17.99
${ cartQty[39530699391051] }
Weiss Nights

Weiss Nights

Hefeweizen Bright. Bubbly. Fruity. 4.6%
£17.99
${ cartQty[39530700472395] }
window.processing = false;
window.productCardList = [{"id":6619990523979,"title":"Space Hopper","handle":"9","description":"\u003ch4\u003e\n\u003cmeta charset=\"utf-8\"\u003e\n\u003cspan data-mce-fragment=\"1\"\u003eGolden colour and a slight haze. Strong, intense hop flavour and aroma but with enough malt in the back to balance things out.\u003c\/span\u003e\n\u003c\/h4\u003e","published_at":"2021-09-28T19:49:41+01:00","created_at":"2021-09-28T19:49:42+01:00","vendor":"TGG - Fresh Brewing","type":"Press","tags":["Additional Product Type|Ales","Additional Product Type|Classic","Additional Product Type|DIPA","Additional Product Type|Pale Ale","BESTSELLER","BLUEFRESHBEER","Contains Gluten","funnel_brewdog","funnel_default","funnel_norwich","GIFTING25","Hidden_From_SEO","HOPPYFLAVOURDISCOVERY","HOTRIGHTNOW","Icons|citrus","Icons|full bodied","Icons|hoppy","SHOPALLCOLLECTION","SUMMERSTYLE","USA_export","Vegan"],"price":1999,"price_min":1999,"price_max":1999,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":39530700734539,"title":"One-off","option1":"One-off","option2":null,"option3":null,"sku":"SPHREF3","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Space Hopper - One-off","public_title":"One-off","options":["One-off"],"price":1999,"weight":1800,"compare_at_price":null,"inventory_management":"shopify","barcode":"5060904690481","requires_selling_plan":false,"selling_plan_allocations":[{"price_adjustments":[{"position":1,"price":1599}],"price":1599,"compare_at_price":1999,"per_delivery_price":1599,"selling_plan_id":726499403,"selling_plan_group_id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0"},{"price_adjustments":[{"position":1,"price":1999}],"price":1999,"compare_at_price":1999,"per_delivery_price":1999,"selling_plan_id":709864259966,"selling_plan_group_id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0"},{"price_adjustments":[{"position":1,"price":1999}],"price":1999,"compare_at_price":1999,"per_delivery_price":1999,"selling_plan_id":1113587787,"selling_plan_group_id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0"}],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/pinter.co.uk\/cdn\/shop\/files\/SpaceHopper_03.jpg?v=1693557821"],"featured_image":"\/\/pinter.co.uk\/cdn\/shop\/files\/SpaceHopper_03.jpg?v=1693557821","options":["Title"],"media":[{"alt":null,"id":22169323798603,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1800,"width":1800,"src":"\/\/pinter.co.uk\/cdn\/shop\/files\/SpaceHopper_03.jpg?v=1693557821"},"aspect_ratio":1.0,"height":1800,"media_type":"image","src":"\/\/pinter.co.uk\/cdn\/shop\/files\/SpaceHopper_03.jpg?v=1693557821","width":1800}],"requires_selling_plan":false,"selling_plan_groups":[{"id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0","name":"Pinter","options":[{"name":"Pinter","position":1,"values":["Delivered every month","Every 4 weeks","Spread Payments Product"]}],"selling_plans":[{"id":726499403,"name":"Every month","description":null,"options":[{"name":"Pinter","position":1,"value":"Delivered every month"}],"recurring_deliveries":true,"price_adjustments":[{"order_count":null,"position":1,"value_type":"percentage","value":20}],"checkout_charge":{"value_type":"percentage","value":100}},{"id":709864259966,"name":"Every 4 weeks","description":"Every 4 weeks","options":[{"name":"Pinter","position":1,"value":"Every 4 weeks"}],"recurring_deliveries":true,"price_adjustments":[{"order_count":null,"position":1,"value_type":"fixed_amount","value":0}],"checkout_charge":{"value_type":"percentage","value":100}},{"id":1113587787,"name":"Spread Payments Product","description":"Spread Payments Product","options":[{"name":"Pinter","position":1,"value":"Spread Payments Product"}],"recurring_deliveries":true,"price_adjustments":[{"order_count":null,"position":1,"value_type":"percentage","value":0}],"checkout_charge":{"value_type":"percentage","value":100}}],"app_id":null}],"content":"\u003ch4\u003e\n\u003cmeta charset=\"utf-8\"\u003e\n\u003cspan data-mce-fragment=\"1\"\u003eGolden colour and a slight haze. Strong, intense hop flavour and aroma but with enough malt in the back to balance things out.\u003c\/span\u003e\n\u003c\/h4\u003e"},{"id":6619989934155,"title":"Public House","handle":"1","description":"\u003cmeta charset=\"utf-8\"\u003e\n\u003ch4\u003e\u003cspan data-mce-fragment=\"1\"\u003eMalty \u0026amp; hoppy. A hop forward beer with a strong burst of piney, resinous and earthy characters. A seriously drinkable IPA.\u003c\/span\u003e\u003c\/h4\u003e","published_at":"2021-09-28T19:49:07+01:00","created_at":"2021-09-28T19:49:10+01:00","vendor":"TGG - Fresh Brewing","type":"Press","tags":["Additional Product Type|Ales","Additional Product Type|Classic","Additional Product Type|ipa","Additional Product Type|Pale Ale","Autumn","AWARDWINNER","Beer Scroller","BLUEFRESHBEER","Contains Gluten","funnel_brewdog","funnel_default","funnel_norwich","GIFTING25","HOPPYFLAVOURDISCOVERY","Icons|amber","Icons|hoppy","Icons|mid high bitterness","Icons|pine","SHOPALLCOLLECTION","SUMMERSTYLE","Vegan"],"price":1799,"price_min":1799,"price_max":1799,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":39530699391051,"title":"One-off","option1":"One-off","option2":null,"option3":null,"sku":"IPAREF3","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Public House - One-off","public_title":"One-off","options":["One-off"],"price":1799,"weight":1800,"compare_at_price":null,"inventory_management":"shopify","barcode":"5060904690139","requires_selling_plan":false,"selling_plan_allocations":[{"price_adjustments":[{"position":1,"price":1439}],"price":1439,"compare_at_price":1799,"per_delivery_price":1439,"selling_plan_id":726499403,"selling_plan_group_id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0"},{"price_adjustments":[{"position":1,"price":1799}],"price":1799,"compare_at_price":1799,"per_delivery_price":1799,"selling_plan_id":709864259966,"selling_plan_group_id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0"},{"price_adjustments":[{"position":1,"price":1799}],"price":1799,"compare_at_price":1799,"per_delivery_price":1799,"selling_plan_id":1113587787,"selling_plan_group_id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0"}],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/pinter.co.uk\/cdn\/shop\/files\/PublicHouse_Improved_03.jpg?v=1715850272"],"featured_image":"\/\/pinter.co.uk\/cdn\/shop\/files\/PublicHouse_Improved_03.jpg?v=1715850272","options":["Title"],"media":[{"alt":null,"id":23072793526347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1800,"width":1800,"src":"\/\/pinter.co.uk\/cdn\/shop\/files\/PublicHouse_Improved_03.jpg?v=1715850272"},"aspect_ratio":1.0,"height":1800,"media_type":"image","src":"\/\/pinter.co.uk\/cdn\/shop\/files\/PublicHouse_Improved_03.jpg?v=1715850272","width":1800}],"requires_selling_plan":false,"selling_plan_groups":[{"id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0","name":"Pinter","options":[{"name":"Pinter","position":1,"values":["Delivered every month","Every 4 weeks","Spread Payments Product"]}],"selling_plans":[{"id":726499403,"name":"Every month","description":null,"options":[{"name":"Pinter","position":1,"value":"Delivered every month"}],"recurring_deliveries":true,"price_adjustments":[{"order_count":null,"position":1,"value_type":"percentage","value":20}],"checkout_charge":{"value_type":"percentage","value":100}},{"id":709864259966,"name":"Every 4 weeks","description":"Every 4 weeks","options":[{"name":"Pinter","position":1,"value":"Every 4 weeks"}],"recurring_deliveries":true,"price_adjustments":[{"order_count":null,"position":1,"value_type":"fixed_amount","value":0}],"checkout_charge":{"value_type":"percentage","value":100}},{"id":1113587787,"name":"Spread Payments Product","description":"Spread Payments Product","options":[{"name":"Pinter","position":1,"value":"Spread Payments Product"}],"recurring_deliveries":true,"price_adjustments":[{"order_count":null,"position":1,"value_type":"percentage","value":0}],"checkout_charge":{"value_type":"percentage","value":100}}],"app_id":null}],"content":"\u003cmeta charset=\"utf-8\"\u003e\n\u003ch4\u003e\u003cspan data-mce-fragment=\"1\"\u003eMalty \u0026amp; hoppy. A hop forward beer with a strong burst of piney, resinous and earthy characters. A seriously drinkable IPA.\u003c\/span\u003e\u003c\/h4\u003e"},{"id":6653950591051,"title":"Whole Nine Yards","handle":"whole-nine-yards","description":"\u003ch4\u003e\n\u003cmeta charset=\"utf-8\"\u003eSweet, moreish and seductively tart. Bursting with more flavour than ever from apples. Perfectly refreshing year-round.\u003c\/h4\u003e","published_at":"2021-12-09T10:56:18+00:00","created_at":"2021-12-08T14:09:16+00:00","vendor":"Fresh Brewing","type":"Press","tags":["Additional Product Type|cider","Additional Product Type|Classic","FRUITYSWEETFLAVOURDISCOVERY","funnel_brewdog","funnel_default","funnel_norwich","GIFTING25","GOLDRATED","Icons|apple","Icons|british","Icons|refreshing","Icons|simple","REDFRESHBEER","SHOPALLCOLLECTION","SUMMERSTYLE","Vegan"],"price":1799,"price_min":1799,"price_max":1799,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":39612517253195,"title":"One-off","option1":"One-off","option2":null,"option3":null,"sku":"WNYREF3","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Whole Nine Yards - One-off","public_title":"One-off","options":["One-off"],"price":1799,"weight":1800,"compare_at_price":null,"inventory_management":"shopify","barcode":"5060904690849","requires_selling_plan":false,"selling_plan_allocations":[{"price_adjustments":[{"position":1,"price":1439}],"price":1439,"compare_at_price":1799,"per_delivery_price":1439,"selling_plan_id":726499403,"selling_plan_group_id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0"},{"price_adjustments":[{"position":1,"price":1799}],"price":1799,"compare_at_price":1799,"per_delivery_price":1799,"selling_plan_id":709864259966,"selling_plan_group_id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0"},{"price_adjustments":[{"position":1,"price":1799}],"price":1799,"compare_at_price":1799,"per_delivery_price":1799,"selling_plan_id":1113587787,"selling_plan_group_id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0"}],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/pinter.co.uk\/cdn\/shop\/files\/WholeNineYards_03.jpg?v=1693558337"],"featured_image":"\/\/pinter.co.uk\/cdn\/shop\/files\/WholeNineYards_03.jpg?v=1693558337","options":["Title"],"media":[{"alt":null,"id":22169334513739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1800,"width":1800,"src":"\/\/pinter.co.uk\/cdn\/shop\/files\/WholeNineYards_03.jpg?v=1693558337"},"aspect_ratio":1.0,"height":1800,"media_type":"image","src":"\/\/pinter.co.uk\/cdn\/shop\/files\/WholeNineYards_03.jpg?v=1693558337","width":1800}],"requires_selling_plan":false,"selling_plan_groups":[{"id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0","name":"Pinter","options":[{"name":"Pinter","position":1,"values":["Delivered every month","Every 4 weeks","Spread Payments Product"]}],"selling_plans":[{"id":726499403,"name":"Every month","description":null,"options":[{"name":"Pinter","position":1,"value":"Delivered every month"}],"recurring_deliveries":true,"price_adjustments":[{"order_count":null,"position":1,"value_type":"percentage","value":20}],"checkout_charge":{"value_type":"percentage","value":100}},{"id":709864259966,"name":"Every 4 weeks","description":"Every 4 weeks","options":[{"name":"Pinter","position":1,"value":"Every 4 weeks"}],"recurring_deliveries":true,"price_adjustments":[{"order_count":null,"position":1,"value_type":"fixed_amount","value":0}],"checkout_charge":{"value_type":"percentage","value":100}},{"id":1113587787,"name":"Spread Payments Product","description":"Spread Payments Product","options":[{"name":"Pinter","position":1,"value":"Spread Payments Product"}],"recurring_deliveries":true,"price_adjustments":[{"order_count":null,"position":1,"value_type":"percentage","value":0}],"checkout_charge":{"value_type":"percentage","value":100}}],"app_id":null}],"content":"\u003ch4\u003e\n\u003cmeta charset=\"utf-8\"\u003eSweet, moreish and seductively tart. Bursting with more flavour than ever from apples. Perfectly refreshing year-round.\u003c\/h4\u003e"},{"id":6619990294603,"title":"Weiss Nights","handle":"weiss-nights","description":"\u003ch4\u003e\n\u003cmeta charset=\"utf-8\"\u003e\n\u003cspan data-mce-fragment=\"1\"\u003ePale and hazy with a light-bodied and bready flavour and notes of banana and cloves. Low to mild hop presence. \u003c\/span\u003e\n\u003c\/h4\u003e","published_at":"2023-01-24T13:50:35+00:00","created_at":"2021-09-28T19:49:31+01:00","vendor":"TGG - Fresh Brewing","type":"Press","tags":["Additional Product Type|Ales","Additional Product Type|Classic","Additional Product Type|hefeweizen","Additional Product Type|Other Styles","Contains Gluten","FRUITYSWEETFLAVOURDISCOVERY","funnel_brewdog","funnel_default","funnel_norwich","GIFTING25","Icons|banana","Icons|german","Icons|low mild hop","Icons|spice","Packing_Fresh_Press","SHOPALLCOLLECTION","USA_export","Vegan"],"price":1799,"price_min":1799,"price_max":1799,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":39530700472395,"title":"One-off","option1":"One-off","option2":null,"option3":null,"sku":"WEISREF3","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Weiss Nights - One-off","public_title":"One-off","options":["One-off"],"price":1799,"weight":1800,"compare_at_price":null,"inventory_management":"shopify","barcode":"5060904690542","requires_selling_plan":false,"selling_plan_allocations":[{"price_adjustments":[{"position":1,"price":1439}],"price":1439,"compare_at_price":1799,"per_delivery_price":1439,"selling_plan_id":726499403,"selling_plan_group_id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0"},{"price_adjustments":[{"position":1,"price":1799}],"price":1799,"compare_at_price":1799,"per_delivery_price":1799,"selling_plan_id":709864259966,"selling_plan_group_id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0"},{"price_adjustments":[{"position":1,"price":1799}],"price":1799,"compare_at_price":1799,"per_delivery_price":1799,"selling_plan_id":1113587787,"selling_plan_group_id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0"}],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/pinter.co.uk\/cdn\/shop\/files\/WeissNights_03.jpg?v=1693558046"],"featured_image":"\/\/pinter.co.uk\/cdn\/shop\/files\/WeissNights_03.jpg?v=1693558046","options":["Title"],"media":[{"alt":null,"id":22169327370315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1800,"width":1800,"src":"\/\/pinter.co.uk\/cdn\/shop\/files\/WeissNights_03.jpg?v=1693558046"},"aspect_ratio":1.0,"height":1800,"media_type":"image","src":"\/\/pinter.co.uk\/cdn\/shop\/files\/WeissNights_03.jpg?v=1693558046","width":1800}],"requires_selling_plan":false,"selling_plan_groups":[{"id":"be5e5fd260ca25f9cd4737f4da1541b6040109c0","name":"Pinter","options":[{"name":"Pinter","position":1,"values":["Delivered every month","Every 4 weeks","Spread Payments Product"]}],"selling_plans":[{"id":726499403,"name":"Every month","description":null,"options":[{"name":"Pinter","position":1,"value":"Delivered every month"}],"recurring_deliveries":true,"price_adjustments":[{"order_count":null,"position":1,"value_type":"percentage","value":20}],"checkout_charge":{"value_type":"percentage","value":100}},{"id":709864259966,"name":"Every 4 weeks","description":"Every 4 weeks","options":[{"name":"Pinter","position":1,"value":"Every 4 weeks"}],"recurring_deliveries":true,"price_adjustments":[{"order_count":null,"position":1,"value_type":"fixed_amount","value":0}],"checkout_charge":{"value_type":"percentage","value":100}},{"id":1113587787,"name":"Spread Payments Product","description":"Spread Payments Product","options":[{"name":"Pinter","position":1,"value":"Spread Payments Product"}],"recurring_deliveries":true,"price_adjustments":[{"order_count":null,"position":1,"value_type":"percentage","value":0}],"checkout_charge":{"value_type":"percentage","value":100}}],"app_id":null}],"content":"\u003ch4\u003e\n\u003cmeta charset=\"utf-8\"\u003e\n\u003cspan data-mce-fragment=\"1\"\u003ePale and hazy with a light-bodied and bready flavour and notes of banana and cloves. Low to mild hop presence. \u003c\/span\u003e\n\u003c\/h4\u003e"},{"id":6835060342859,"title":"£25 Digital Gift Card","handle":"25-digital-gift-card","description":"\u003cmeta charset=\"utf-8\"\u003e\u003cspan\u003eThe perfect gift for any occasion! Our gift card offers the recipient to choose from a vast range of beers, all the way to machines and merchandise, the choice is theirs. With no expiration date and an easy online redemption, it's a thoughtful and convenient present.\u003c\/span\u003e","published_at":"2023-06-02T13:20:29+01:00","created_at":"2023-05-31T11:39:53+01:00","vendor":"Pinter","type":"Giftcard","tags":["GIFTING25","SHOPALLCOLLECTION"],"price":2500,"price_min":2500,"price_max":2500,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":40020529512523,"title":"One-off","option1":"One-off","option2":null,"option3":null,"sku":"GIFTCARD25","requires_shipping":false,"taxable":false,"featured_image":{"id":29770858758219,"product_id":6835060342859,"position":1,"created_at":"2023-05-31T11:39:55+01:00","updated_at":"2023-05-31T11:39:55+01:00","alt":null,"width":1800,"height":1800,"src":"\/\/pinter.co.uk\/cdn\/shop\/files\/GiftCardProductImage_03_4259bbc3-ae82-4a99-adb8-9c4b3e5053fa.jpg?v=1685529595","variant_ids":[40020529512523]},"available":true,"name":"£25 Digital Gift Card - One-off","public_title":"One-off","options":["One-off"],"price":2500,"weight":0,"compare_at_price":null,"inventory_management":null,"barcode":"","featured_media":{"alt":null,"id":22056644542539,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1800,"width":1800,"src":"\/\/pinter.co.uk\/cdn\/shop\/files\/GiftCardProductImage_03_4259bbc3-ae82-4a99-adb8-9c4b3e5053fa.jpg?v=1685529595"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/pinter.co.uk\/cdn\/shop\/files\/GiftCardProductImage_03_4259bbc3-ae82-4a99-adb8-9c4b3e5053fa.jpg?v=1685529595"],"featured_image":"\/\/pinter.co.uk\/cdn\/shop\/files\/GiftCardProductImage_03_4259bbc3-ae82-4a99-adb8-9c4b3e5053fa.jpg?v=1685529595","options":["Title"],"media":[{"alt":null,"id":22056644542539,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1800,"width":1800,"src":"\/\/pinter.co.uk\/cdn\/shop\/files\/GiftCardProductImage_03_4259bbc3-ae82-4a99-adb8-9c4b3e5053fa.jpg?v=1685529595"},"aspect_ratio":1.0,"height":1800,"media_type":"image","src":"\/\/pinter.co.uk\/cdn\/shop\/files\/GiftCardProductImage_03_4259bbc3-ae82-4a99-adb8-9c4b3e5053fa.jpg?v=1685529595","width":1800}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cmeta charset=\"utf-8\"\u003e\u003cspan\u003eThe perfect gift for any occasion! Our gift card offers the recipient to choose from a vast range of beers, all the way to machines and merchandise, the choice is theirs. With no expiration date and an easy online redemption, it's a thoughtful and convenient present.\u003c\/span\u003e"}]; callSortingFunction(); function callSortingFunction() { if(window.processing) { setTimeout(function() { callSortingFunction(); },1000); } var sorted_items = getSorted('.card-product', 'data-sort', window.sortBy); $('.listing-shop__inner').html(sorted_items); } function getSorted(selector, attrName, ascordesc) { return $($(selector).toArray().sort(function(a, b){ var aType = a.getAttribute('data-type'); var bType = b.getAttribute('data-type'); var aAvailable = a.getAttribute('data-available'); var bAvailable = b.getAttribute('data-available'); if ((aType === "Pinter" && aAvailable) && (bType === "Tap" || bType === "Co-Pinter")) return -1; else if (aType === "Tap" && aAvailable && bType === "Co-Pinter") return -1; else if (bType === "Pinter" && bAvailable && (aType === "Tap" || aType === "Co-Pinter")) return 1; else if (bType === "Tap" && bAvailable && aType === "Co-Pinter") return 1; else if ((aType === "Tap" || aType === "Pinter" || aType === "Co-Pinter") && aAvailable && (bType !== "Tap" && bType !== "Pinter" && bType !== "Co-Pinter")) return -1; else if ((aType !== "Tap" && aType !== "Pinter" && aType !== "Co-Pinter") && bAvailable && (bType === "Tap" || bType === "Pinter" || bType === "Co-Pinter")) return 1; else if (aAvailable === "false" && bAvailable === "true") return 1; else if (aAvailable === "true" && bAvailable === "false") return -1; var aVal = parseInt(a.getAttribute(attrName)), bVal = parseInt(b.getAttribute(attrName)); if(ascordesc == 'price-ascending'){ return aVal - bVal; } if(ascordesc == 'price-dec'){ return bVal - aVal; } })); }