Open mwehr opened 11 months ago
hello, It would be better if you sort the records in the get_records_select call
Hii @danielneis first of all, many thanks for your efforts in developing and maintaining this plugin!
Albeit its nice design and layout the Block plugin is HIGHLY MISSING a functionality to sort/order selected courses, like:
or
As a site-admin, I would install this plugin much more often, if it had this missing functionality.
Dear @danielneis I tried out the patch from @mwehr on a Moodle 4.1 instance and it actually worked fine, I even did not get any debug-messages since the branch did not receive any adjustments to 4.1. So it actually works.
And dear @mwehr do you think it might be possible to implement the same functionality by using the safe_records_select
call, as @danielneis suggested?
The would really profit from an added sorting functionality!!! 🙏
Cheers
p
Hi @peta3000,
See #12 for SQL verison.
Hi,
This fixes the order of the displayed courses according to their configuration.
Best regards, Mario