Basic default comparator implementation