Skip to content

Commit

Permalink
allow --sort= to disable sort override
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Feb 25, 2015
1 parent a5c7a13 commit 52eb7f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jira/cli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (c *Cli) CmdList() error {
qbuff.WriteString(fmt.Sprintf(" AND reporter = '%s'", reporter))
}

if sort, ok := c.opts["sort"]; ok {
if sort, ok := c.opts["sort"]; ok && sort != "" {
qbuff.WriteString(fmt.Sprintf(" ORDER BY %s", sort ))
}

Expand Down

0 comments on commit 52eb7f4

Please sign in to comment.