Is there any way to change the order departments are displayed by? At this moment they are ordered by ID, from the oldest to the newest.
Change department order in SP Medical
Accepted answer
Marked as the solutionAt this moment there is no easy way to change the order that departments appear in. For example in the demo: https://demo.joomshaper.com/2018/medico/index.php/departments
The departments appear in the order that they were created in. I want to change it so they appear in an alphabetical order.
I managed to change it for myself by editing getListQuery() in components/com_spmedical/models/departments.php but this is a very dirty solution.
1 more reply
Hi
Thanks for contacting us. No sorry there is no default option like this, without ID you can not display order departments.
-Regards.
Is there any possibility to modify the query that gets the departments? From what I understand it should be somewhere in the code.
Could you please explain it a bit more?
Got it but sorry there is no default way to do that, you can follow that solution which you shared.