Skip to content

Commit a41130f

Browse files
committed
Fix bug where faction was always sorted alphabetically
1 parent 4973330 commit a41130f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcdbcli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ print_factions() {
136136
for faction_json in $(jq -c '.[]' <<<"$cards_json"); do
137137
local faction_code=$(jq -r '.[0].faction_code' <<<"$faction_json")
138138
print_faction_heading $faction_code
139-
for card_json in $(jq -c --arg alpha $ALPHABETICAL_ORDER 'if $alpha
139+
for card_json in $(jq -c --arg alpha $ALPHABETICAL_ORDER 'if $alpha == "true"
140140
then sort_by(.real_name) | .[]
141141
else .[] end' <<<"$faction_json"); do
142142
print_card "$card_json"

0 commit comments

Comments
 (0)