BuddhaNexus / buddhanexus

Backend for the Buddhanexus project
8 stars 2 forks source link

Table view sorting doesn't exist in frontend #349

Open ayya-vimala opened 6 days ago

ayya-vimala commented 6 days ago

The table view has 4 ways of sorting:

    sort_method options:

        "position": "By Position in Inquiry Text"

            (matches sorted by segment number position in the root text (default))

        "quotedtext": "By Position in Hit Text(s)"

            (matches sorted by segment number position in the target/quoted text)

        "length": "By Length of match in Inquiry Text (beginning with the longest)"

            (matches sorted by match-length in the root text

        "length2": "By Length of match in Hit Text (beginning with the longest)"

            (matches sorted by match-length in the target/quoted text)

There is however no way to select this in the table view mode. In the old BN1 there is a dropdown with these 4 sort methods given.

A dropdown needs to be implemented with these 4 methods and the appropriate sort_method returned to the backend.

TrebuhD commented 3 days ago

would be great if @aminahbl could have a look at this one.