def order_columns(dataset, col_names, feature_to_predict):
    """
    Method is responsible of putting the 'feature_to_predict' name as the first column of the dataset
    and sorts the other columns names.
    Parameters
    ----------
    dataset
    col_names = column names to be sorted
    feature_to_predict = feature to be predicted

    Returns
    -------
    Dataset which has 'feature_to_predict' as the first row of the dataset.
    """
    col_names.remove(feature_to_predict)
    col_names.sort()

    sorted_column_list = [feature_to_predict]
    for col_name in col_names:
        if col_name != feature_to_predict:
            sorted_column_list.append(col_name)

    dataset = dataset.reindex(sorted_column_list, axis=1)
    return dataset