Skip to content

Commit

Permalink
fix: Change the order to retrieve the pp that will end closest to us …
Browse files Browse the repository at this point in the history
…in time
  • Loading branch information
AyakorK committed Mar 11, 2024
1 parent 8c3c28c commit 5904410
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def assembly_participatory_processes
assembly_participatory_processes = @current_participatory_space.linked_participatory_space_resources(:participatory_processes, "included_participatory_processes")

sorted_by_date = {
active: assembly_participatory_processes.active_spaces.sort_by(&:end_date).reverse,
active: assembly_participatory_processes.active_spaces.sort_by(&:end_date),
future: assembly_participatory_processes.future_spaces.sort_by(&:start_date),
past: assembly_participatory_processes.past_spaces.sort_by(&:end_date).reverse
}
Expand Down

0 comments on commit 5904410

Please sign in to comment.