@Override
    public void writeToParcel(@NonNull final Parcel dest, final int flags) {
        dest.writeInt(type == null ? -1 : type.ordinal());
        dest.writeByte((byte) (isInverse ? 1 : 0));
        dest.writeParcelable(targetCoords, flags);
        dest.writeByte((byte) (isEventList ? 1 : 0));
        dest.writeByte((byte) (isSeriesList ? 1 : 0));
        dest.writeInt(listType == null ? -1 : listType.ordinal());
    }
Sets sort context depending on a list context.
main/src/main/java/cgeo/geocaching/sorting/GeocacheSort.java