Effortless, dynamic table sorting in Moodle
local_sortable
The Sortable.js Integration Plugin (local_sortable
) enhances the Moodle experience by integrating Sortable.js, a lightweight and efficient JavaScript library for creating sortable tables. With this plugin, users can enable sortable tables across Moodle pages effortlessly, enhancing data interactivity and user experience.
sortable
class.Download the Plugin
.zip
file for your Moodle version.Upload to Moodle
.zip
file and follow the prompts to complete the installation.Complete Installation
Purge Caches (Optional)
Add the sortable
class to any table within Moodle content:
<table class="sortable">
<thead>
<tr>
<th>Name</th>
<th>Role</th>
</tr>
</thead>
<tbody>
<tr>
<td>John Doe</td>
<td>Instructor</td>
</tr>
<tr>
<td>Jane Smith</td>
<td>Student</td>
</tr>
</tbody>
</table>
Once the page loads, Sortable.js will enable column sorting for the specified table.
Customize table behavior using Sortable.js options directly in your HTML, such as disabling sorting for specific columns:
<th class="no-sort">Role</th>
For questions, issues, or feature requests, please contact:
Email: support@toptiertools.company
This plugin is released under the GNU General Public License v3 or later.
See GNU GPL v3 for details.
Here’s the updated README with the simplified installation instructions suitable for a public audience: