UniStuttgart-VISUS / damast

Code for the DH project "Dhimmis & Muslims – Analysing Multireligious Spaces in the Medieval Muslim World" (VolkswagenFoundation)
MIT License
10 stars 1 forks source link

add button in "source view" to change sorting #104

Closed tutebatti closed 2 years ago

tutebatti commented 2 years ago

In the source view, two buttons should be added to switch between alphabetical order (using the short name) and the only currently available ordering, i.e. according to number of evidences.

(Cf. also #103.)

tutebatti commented 2 years ago

Update: possibly, this will not be needed.

tutebatti commented 2 years ago

I had another look at this in the current public (but not yet public) instance. With 33 sources, this feature would be great.

mfranke93 commented 2 years ago

In the source view, two buttons should be added to switch between alphabetical order (using the short name) and the only currently available ordering, i.e. according to number of evidences.

Just to clarify, should it be possible to reverse-sort as well? Most interactive tables (e.g., Excel) offer this. So, clicking a table header once sorts by that column, clicking again sorts by that column in descending order.

Offering just two orders (ascending by alphabetical source short name, descending by number of evidences) would be easier to implement, but does that cover all your use cases?

tutebatti commented 2 years ago

I would say reverse is not necessary (33 is not that many after all).

mfranke93 commented 2 years ago

Would a control like this (in the header of the view) work?

image

tutebatti commented 2 years ago

Yes, absolutely. I would position it a little bit more to the right, to keep it separate from the other three buttons.

mfranke93 commented 2 years ago

Okay, this should be finished now.

@tutebatti : Maybe consider sending the info text additions (fcd3e5273005dcaaf1a2439c8ae17d718e047420) to the native speaker as well. Or at least take a brief look. I tried to consider the terminology changes we discussed elsewhere, but I am not sure if the descriptions are understandable enough.