diff --git a/lib/NGCP/Panel/Controller/Customer.pm b/lib/NGCP/Panel/Controller/Customer.pm index dc9aaef83e..c956ea7a78 100644 --- a/lib/NGCP/Panel/Controller/Customer.pm +++ b/lib/NGCP/Panel/Controller/Customer.pm @@ -1557,6 +1557,7 @@ sub pbx_device_create :Chained('base') :PathPart('pbx/device/create') :Args(0) { ->search({ 'device.reseller_id' => $c->stash->{contract}->contact->reseller_id, },{ + order_by => { -asc => 'name' }, join => { 'config' => 'device' }, }); my $form = NGCP::Panel::Form::get("NGCP::Panel::Form::Customer::PbxFieldDevice", $c); diff --git a/lib/NGCP/Panel/Controller/Sound.pm b/lib/NGCP/Panel/Controller/Sound.pm index 088e4cc238..bb77e578ea 100644 --- a/lib/NGCP/Panel/Controller/Sound.pm +++ b/lib/NGCP/Panel/Controller/Sound.pm @@ -461,6 +461,7 @@ sub handles_list :Chained('base') :PathPart('handles') :CaptureArgs(0) { { 'handles.id' => { '=' => \'files.handle_id'}, 'files.set_id' => $c->stash->{set_result}->id}, ], ], + order_by => { -asc => 'handles.name' } }); if($c->stash->{set_result}->contract_id) {