Code Monkey home page Code Monkey logo

Comments (2)

DavidMStraub avatar DavidMStraub commented on August 20, 2024

Good question; note that the sorting has to be done in the backend, as the items are only fetched page-wise. Can you please check the API docs on Swagger to see if the sorted keyword allows to sort by those fields? I don't remember, honestly. If not, we would have to fix it there.

from gramps-web.

lenzls avatar lenzls commented on August 20, 2024

Oh, I haven't thought about, that all sorting is done server side. Still a small analysis of all the mentioned cases:

People → Given name

Indeed, one can only sort on

field desc
name The sort name of the person
surname The surname of the person, taking into consideration the given name and suffix for people who share the same surname

Even though I'm not exactly sure how both work, it looks like the given name is not included.

Families → mother

Currently, when sorting on father, this is used:

Key Description
surname The surname of the father or, if none present, the mother of the family taking into consideration the given name and suffix for families who share the same surname

And it seems there is no specific sort parameter which prefers the mother.

Citations → Source: Title

There is no option to sort on the source title which comes from a nested resource anyway.


All in all, Gramps.js can't really do anything in all the cases above. The webapi would need to support more fields to sort on.

I will close this issue.

from gramps-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.