Skip to content

Commit

Permalink
Sort laundry features alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectly-preserved-pie committed Aug 29, 2023
1 parent ad11010 commit 6772536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/lease_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ def subtype_function(choice):
# Create a checklist for laundry features
dcc.Checklist(
id='laundry_checklist',
options=[{'label': i, 'value': i} for i in laundry_categories],
options=sorted([{'label': i, 'value': i} for i in laundry_categories], key=lambda x: x['label']),
# Set the default value to all of the options
value=laundry_categories,
labelStyle = {'display': 'block'},
Expand Down

0 comments on commit 6772536

Please sign in to comment.