Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Change Airport sorting to use city names #5

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
resources:
- repo: self

queue:
name: Hosted VS2017
demands: npm

steps:
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)/Templates'
inputs:
SourceFolder: deployment
Contents: '*.json'
TargetFolder: '$(build.artifactstagingdirectory)/Templates'

- task: Npm@1
displayName: 'npm custom'
inputs:
command: custom
verbose: false
customCommand: 'install --production'

- task: ArchiveFiles@2
displayName: 'Archive $(Build.SourcesDirectory)'
inputs:
rootFolderOrFile: '$(Build.SourcesDirectory)'
includeRootFolder: false

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'


4 changes: 3 additions & 1 deletion src/services/book.form.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class BookFormService {
],
today: moment().toDate(),
passengers: [1, 2, 3, 4, 5],
airports: this._airports.getAll()
airports: this._airports.getAll().sort(function (first, second) {
return first.city.localeCompare(second.city);
})
};
}
}
Expand Down