 Classifier = require '../../classifier'
 alert = require '../../lib/alert'
 SignInPrompt = require '../../partials/sign-in-prompt'
+sessionSubjects = require '../../lib/session-subjects'
 
 PROMPT_TO_SIGN_IN_AFTER = [5, 10, 25, 50, 100, 250, 500]
-
-sessionSubjects = require '../../lib/session-subjects'
 
 SKIP_CELLECT = location.search.match(/\Wcellect=0(?:\W|$)/)?
 

  createNewClassification: (project, workflowID) ->
    workflow = @getWorkflow project, workflowID
    subject = workflow.then (workflow) =>
      @getNextSubject project, workflow

    Promise.all([workflow, subject]).then ([workflow, subject]) ->
      # console.log 'Creating a new classification'

    if upcomingSubjects.forWorkflow[workflow.id].length is 0
      # console.log 'Fetching subjects'
      subjectQuery =
        workflow_id: workflow.id
        subject_set_id: subjectSet.id
        sort: 'queued' unless SKIP_CELLECT

      fetchSubjects = apiClient.type('subjects').get subjectQuery
        .catch (error) ->
