i don't really understand what you mean with 'before' but you could use this example


/**
* Returns - 1 if anotherCard's suit is before, 0 if equal to and +1 if
* after. The order is...