src/main/java/seedu/address/logic/commands/applicant/SortApplicant.java
public static boolean isValid(String sortBy) {
        return sortBy.toLowerCase().matches(SORTAPPLICANT_BY_DATEAPPLIED
                + "|" + SORTAPPLICANT_BY_INTERVIEW
                + "|" + SORTAPPLICANT_BY_JOB);
    }
/**
     * Returns true if a given attribute is valid.
     */
Returns true if a given attribute is valid.
Returns true if a given attribute is valid .
public static boolean isValid(String sortBy) {
        return sortBy.toLowerCase().matches(SORTAPPLICANT_BY_DATEAPPLIED
                + "|" + SORTAPPLICANT_BY_INTERVIEW
                + "|" + SORTAPPLICANT_BY_JOB);
    }
public static boolean isValid ( String sortBy ) { return sortBy . toLowerCase ( ) . matches ( SORTAPPLICANT_BY_DATEAPPLIED + "|" + SORTAPPLICANT_BY_INTERVIEW + "|" + SORTAPPLICANT_BY_JOB ) ; }
Returns true if a given attribute is valid.
Returns true if a given attribute is valid .