Skip to content

Commit

Permalink
Order deployment list alphabetically (#176)
Browse files Browse the repository at this point in the history
* Order deployment list alphabetically

* Set default airflow version to 1.10.2
  • Loading branch information
Ben authored and schnie committed Feb 11, 2019
1 parent 0d32b65 commit ee102f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deployment/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package deployment

import (
"fmt"
"sort"

"github.com/astronomer/astro-cli/config"
"github.com/astronomer/astro-cli/houston"
Expand Down Expand Up @@ -88,6 +89,8 @@ func List(ws string, all bool) error {

deployments = r.Data.GetDeployments

sort.Slice(deployments, func(i, j int) bool { return deployments[i].Label > deployments[j].Label })

// Build rows
for _, d := range deployments {
if all {
Expand Down

0 comments on commit ee102f9

Please sign in to comment.