Basic comparator working for lists and cards