# HG changeset patch # User bsw # Date 1534783397 -7200 # Node ID b42bea44f26cece4b63d25afa064b68f1e329d5f # Parent a808627367eba56aa96c77051367c32141690996 Sorting unit names in registration form diff -r a808627367eb -r b42bea44f26c app/main/registration/_register_form.lua --- a/app/main/registration/_register_form.lua Mon Aug 20 10:44:22 2018 +0200 +++ b/app/main/registration/_register_form.lua Mon Aug 20 18:43:17 2018 +0200 @@ -160,6 +160,7 @@ elseif field.name == "unit" then local units_selector = Unit:new_selector() :add_where{ "active" } + :add_order_by("name") if field.where then units_selector:add_where(field.where) end