settings_playground: Fix sorting issues in playgrounds table.

Removed the sorting functions which were sorting under the assumption that
our comparison items were a list instead I used the generic sort functions
functionality of our `list_widget` module.
This commit is contained in:
Lalit
2023-05-21 14:11:51 +05:30
committed by Tim Abbott
parent f04ae8acd3
commit 888d6d8037
2 changed files with 4 additions and 25 deletions

View File

@@ -71,9 +71,9 @@
<div class="progressive-table-wrapper" data-simplebar>
<table class="table table-condensed table-striped wrapped-table admin_playgrounds_table">
<thead class="table-sticky-headers">
<th class="active" data-sort="pygments_language">{{t "Language" }}</th>
<th data-sort="playground_name">{{t "Name" }}</th>
<th data-sort="url">{{t "URL prefix" }}</th>
<th class="active" data-sort="alphabetic" data-sort-prop="pygments_language">{{t "Language" }}</th>
<th data-sort="alphabetic" data-sort-prop="name">{{t "Name" }}</th>
<th data-sort="alphabetic" data-sort-prop="url_prefix">{{t "URL prefix" }}</th>
{{#if is_admin}}
<th class="actions">{{t "Actions" }}</th>
{{/if}}