Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

var SortSelect = function(select) {
var options = jQuery.makeArray(select.find('option'));
var sorted = options.sort(function($a, $b) {
jQuery(a).text() > jQuery(b).text()
var a = jQuery($a).text();
var b = jQuery($b).text();
var ax = [], bx = [];
<!-- Solution brought to you by Caroline Schnapp -->
<!-- See this: http://wiki.shopify.com/Related_Products -->
{% assign number_of_related_products_to_show = 3 %}
{% assign image_size = 'compact' %}
{% assign heading = 'Other fine products' %}
{% assign number_of_related_products_to_fetch = number_of_related_products_to_show | plus: 1 %}