senaite / senaite.core

Enterprise Open Source Laboratory System (LIMS)
https://senaite.com
GNU General Public License v2.0
254 stars 145 forks source link

Fix analysis categories are not sorted by sort key #2619

Closed xispa closed 1 month ago

xispa commented 1 month ago

Description of the issue/feature this PR addresses

This Pull Request addresses an issue introduced with https://github.com/senaite/senaite.core/pull/2567 so that categories are no longer sorted by Sort Key in analyses listings and in sample add form. Reason is that sortable_title was declared as an indexer for the old IAnalysisCategory marker interface that was used for AT.

Current behavior before PR

Analysis categories are not sorted in accorance with SortKey in analyses listings

Desired behavior after PR is merged

Analysis categories are sorted in accorance with SortKey in analyses listings

-- I confirm I have tested this PR thoroughly and coded it according to PEP8 and Plone's Python styleguide standards.