function sortCards(a, b) {
	if (a.data.cost !== b.data.cost) {
		return a.data.cost - b.data.cost;
	}
	if (a.data.name < b.data.name) {
		return -1;
	}
	if (a.data.name > b.data.name) {
		return 1;
	}
	return 0;
}
// Sorts cards by cost then by name
Sorts cards by cost then by name
Sorts cards by cost then by name
function sortCards(a, b) {
	if (a.data.cost !== b.data.cost) {
		return a.data.cost - b.data.cost;
	}
	if (a.data.name < b.data.name) {
		return -1;
	}
	if (a.data.name > b.data.name) {
		return 1;
	}
	return 0;
}
function sortCards ( a , b ) { if ( a . data . cost !== b . data . cost ) { return a . data . cost - b . data . cost ; } if ( a . data . name < b . data . name ) { return - 1 ; } if ( a . data . name > b . data . name ) { return 1 ; } return 0 ; }
Sorts cards by cost then by name
Sorts cards by cost then by name