This PR adds a new parameter SortByUpdatedAt to control whether the project list should be sorted by the UpdatedAt field, supporting both ascending and descending order.
What is changed and how it works?
Added the SortByUpdatedAt field to the ProjectListOptions struct.
Modified the getProjects function to sort the project list based on the SortByUpdatedAt field:
If SortByUpdatedAt is "asc", the list is sorted in ascending order by UpdatedAt.
If SortByUpdatedAt is "desc", the list is sorted in descending order by UpdatedAt.
Does this PR introduce a user-facing change?
[x] API change
[ ] database schema change
[ ] upgrade assistant change
[ ] change in non-functional attributes such as efficiency or availability
What this PR does / Why we need it:
This PR adds a new parameter SortByUpdatedAt to control whether the project list should be sorted by the UpdatedAt field, supporting both ascending and descending order.
What is changed and how it works?
Does this PR introduce a user-facing change?