Skip to content

Commit 41a676f

Browse files
authored
Merge pull request #2849 from DFE-Digital/AQTS-1138-reorder-cms-applications
AQTS 1138 reorder cms applications
2 parents 3144b2d + 6107f83 commit 41a676f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/view_objects/assessor_interface/application_forms_index_view_object.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def application_forms_with_pagy
139139
params: filter_params,
140140
),
141141
params: filter_params,
142-
).order(submitted_at: :asc),
142+
).order(submitted_at: :desc),
143143
)
144144
end
145145

spec/system/assessor_interface/listing_application_forms_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ def application_forms
6666
:with_assessment,
6767
:submitted,
6868
region: create(:region, :in_country, country_code: "FR"),
69-
).sort_by(&:submitted_at)
69+
).sort_by(&:submitted_at).reverse
7070
end
7171
end

spec/view_objects/assessor_interface/application_forms_index_view_object_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
)
124124
end
125125

126-
it { is_expected.to eq([application_form_1, application_form_2]) }
126+
it { is_expected.to eq([application_form_2, application_form_1]) }
127127
end
128128

129129
context "with lots of application forms" do

0 commit comments

Comments
 (0)