   $scope.sortby = $scope.select_critere[3]
   $scope.order = $scope.select_order[2]
   $scope.loading = cfpLoadingBar
-
+  # language / country
   $scope.country = ISO3166
   $scope.LANGUAGES_NAME = languageMappingList
   $scope.LANGUAGES_NAME_short = {}

  # init
  $scope.candidatures = []
  $scope.candidatures_filtered = []

  $scope.select_critere = [
    {title: 'tout', sortby: {"all": true} },
    {title: 'les candidatures courrier', sortby: {"physical_content": true}},

    )
    return true

  # make CSV file
  $scope.today = new Date()
  $scope.make_data = () ->
    csvContent = ""
    csv = []
    for line in document.querySelectorAll("table#data_candidatures tr")
        row = []
        for col in line.querySelectorAll("td, th")
            t = $(col).text().replace(/\s\s+/g,' ')
            row.push(t)
        csv.push(row.join(";"))

    csvContent += "\ufeff"+csv.join('\n')
    csvFile  = new Blob([csvContent], {type: "text/csv;charset=utf-8"})
    return window.URL.createObjectURL(csvFile)

)

