function numericCardSort(a, b) {
      var numA = a['q'],
        numB = b['q'];
      if (numA > numB) {
        return 1;
      } else if (numA < numB) {
        return -1;
      } else {
        return alphabeticalCardSort(a, b);
      }
    }
// sort by quantity of cards, then alphabetically
sort by quantity of cards, then alphabetically
sort by quantity of cards then alphabetically
function numericCardSort(a, b) {
      var numA = a['q'],
        numB = b['q'];
      if (numA > numB) {
        return 1;
      } else if (numA < numB) {
        return -1;
      } else {
        return alphabeticalCardSort(a, b);
      }
    }
function numericCardSort ( a , b ) { var numA = a [ 'q' ] , numB = b [ 'q' ] ; if ( numA > numB ) { return 1 ; } else if ( numA < numB ) { return - 1 ; } else { return alphabeticalCardSort ( a , b ) ; } }
sort by quantity of cards, then alphabetically
sort by quantity of cards then alphabetically